mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 03:43:42 -08:00
Remove old post.language handling for community outbox posts
This commit is contained in:
parent
bc5b1625ef
commit
a55420ea50
1 changed files with 0 additions and 2 deletions
|
@ -177,8 +177,6 @@ def post_to_activity(post: Post, community: Community):
|
||||||
}
|
}
|
||||||
if post.edited_at is not None:
|
if post.edited_at is not None:
|
||||||
activity_data["object"]["object"]["updated"] = ap_datetime(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 or post.type == POST_TYPE_VIDEO) and post.url is not None:
|
if (post.type == POST_TYPE_LINK or post.type == POST_TYPE_VIDEO) and post.url is not None:
|
||||||
activity_data["object"]["object"]["attachment"] = [{"href": post.url, "type": "Link"}]
|
activity_data["object"]["object"]["attachment"] = [{"href": post.url, "type": "Link"}]
|
||||||
if post.image_id is not None:
|
if post.image_id is not None:
|
||||||
|
|
Loading…
Add table
Reference in a new issue