From 830ef632d94aae24cdb24a2d9fa8ae945d802468 Mon Sep 17 00:00:00 2001 From: freamon Date: Thu, 31 Oct 2024 16:24:30 +0000 Subject: [PATCH] Bugfix: include same language identifiers for top-level and deeper-level post-replies --- app/post/routes.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/post/routes.py b/app/post/routes.py index 6f8bd647..1295a43f 100644 --- a/app/post/routes.py +++ b/app/post/routes.py @@ -109,6 +109,9 @@ def show_post(post_id: int): 'language': { 'identifier': reply.language_code(), 'name': reply.language_name() + }, + 'contentMap': { + 'en': reply.body_html } } create_json = { @@ -583,6 +586,10 @@ def add_reply(post_id: int, comment_id: int): 'published': ap_datetime(utcnow()), 'distinguished': False, 'audience': post.community.public_url(), + 'language': { + 'identifier': reply.language_code(), + 'name': reply.language_name() + }, 'contentMap': { 'en': reply.body_html }