From a55420ea50a81494dc418cfaa96272fc95121ea6 Mon Sep 17 00:00:00 2001 From: freamon Date: Fri, 10 May 2024 23:06:58 +0100 Subject: [PATCH] Remove old post.language handling for community outbox posts --- app/activitypub/util.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/activitypub/util.py b/app/activitypub/util.py index 2a125d4d..c2c58270 100644 --- a/app/activitypub/util.py +++ b/app/activitypub/util.py @@ -177,8 +177,6 @@ def post_to_activity(post: Post, community: Community): } if post.edited_at is not None: 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: activity_data["object"]["object"]["attachment"] = [{"href": post.url, "type": "Link"}] if post.image_id is not None: