mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
Bugfix: include same language identifiers for top-level and deeper-level post-replies
This commit is contained in:
parent
aa754cbd45
commit
830ef632d9
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue