diff --git a/utils.py b/utils.py index cc3fd59ad..66d785360 100644 --- a/utils.py +++ b/utils.py @@ -488,7 +488,7 @@ def get_content_from_post(post_json_object: {}, system_language: str, def get_language_from_post(post_json_object: {}, system_language: str, languages_understood: [], - content_type: str = "content") -> str: + content_type: str) -> str: """Returns the content language from the post including searching for a matching entry within contentMap """ diff --git a/webapp_post.py b/webapp_post.py index 09f2504d9..ebf36bc56 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -2661,7 +2661,7 @@ def individual_post_as_html(signing_priv_key_pem: str, content_language = \ get_language_from_post(post_json_object, system_language, - languages_understood) + languages_understood, "content") content_str = dont_speak_hashtags(content_str) attachment_str, gallery_str = \ @@ -2756,7 +2756,7 @@ def individual_post_as_html(signing_priv_key_pem: str, content_str = remove_style_within_html(content_str) content_language = \ get_language_from_post(post_json_object, system_language, - languages_understood) + languages_understood, "content") content_str = dont_speak_hashtags(content_str) if not content_str: content_str = \