Bugfix: include same language identifiers for top-level and deeper-level post-replies

This commit is contained in:
freamon 2024-10-31 16:24:30 +00:00
parent aa754cbd45
commit 830ef632d9

View file

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