Remove old post.language handling for community outbox posts

This commit is contained in:
freamon 2024-05-10 23:06:58 +01:00
parent bc5b1625ef
commit a55420ea50

View file

@ -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: