mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
date format of updated
This commit is contained in:
parent
586aeb5c08
commit
cb2762e15e
2 changed files with 3 additions and 1 deletions
|
@ -148,7 +148,7 @@ def post_to_activity(post: Post, community: Community):
|
|||
"id": f"https://{current_app.config['SERVER_NAME']}/activities/announce/{post.ap_announce_id}"
|
||||
}
|
||||
if post.edited_at is not None:
|
||||
activity_data["object"]["object"]["updated"] = post.edited_at
|
||||
activity_data["object"]["object"]["updated"] = ap_datetime(post.edited_at)
|
||||
if post.language is not None:
|
||||
activity_data["object"]["object"]["language"] = {"identifier": post.language}
|
||||
if post.type == POST_TYPE_LINK and post.url is not None:
|
||||
|
|
|
@ -72,6 +72,8 @@ def register(app):
|
|||
db.session.add(BannedInstances(domain='hexbear.net'))
|
||||
db.session.add(BannedInstances(domain='threads.net'))
|
||||
db.session.add(BannedInstances(domain='pieville.net'))
|
||||
db.session.add(BannedInstances(domain='noauthority.social'))
|
||||
db.session.add(BannedInstances(domain='pieville.net'))
|
||||
interests = file_get_contents('interests.txt')
|
||||
db.session.add(Interest(name='🕊 Chilling', communities=parse_communities(interests, 'chilling')))
|
||||
db.session.add(Interest(name='💭 Interesting stuff', communities=parse_communities(interests, 'interesting stuff')))
|
||||
|
|
Loading…
Add table
Reference in a new issue