Remove default arguments

main
Bob Mottram 2024-02-19 20:54:46 +00:00
parent ca526fa0d3
commit ac735e2d91
4 changed files with 6 additions and 6 deletions

View File

@ -273,7 +273,7 @@ def _html_blog_post_content(debug: bool, session, authorized: bool,
if actor_json:
languages_understood = get_actor_languages_list(actor_json)
json_content = get_content_from_post(post_json_object, system_language,
languages_understood)
languages_understood, "content")
minimize_all_images = False
attachment_str, _ = \
get_post_attachments_as_html(base_dir, nickname, domain,

View File

@ -2045,7 +2045,7 @@ def create_edits_html(edits_json: {}, post_json_object: {},
edit_dates_list.sort(reverse=True)
edits_str = ''
content = get_content_from_post(post_json_object, system_language,
languages_understood)
languages_understood, "content")
if not content:
return ''
content = remove_html(content)
@ -2054,7 +2054,7 @@ def create_edits_html(edits_json: {}, post_json_object: {},
if not has_object_dict(prev_json):
continue
prev_content = get_content_from_post(prev_json, system_language,
languages_understood)
languages_understood, "content")
if not prev_content:
continue
prev_content = remove_html(prev_content)

View File

@ -434,7 +434,7 @@ def remove_markup_tag(html: str, tag: str) -> str:
def get_content_from_post(post_json_object: {}, system_language: str,
languages_understood: [],
content_type: str = "content") -> str:
content_type: str) -> str:
"""Returns the content from the post in the given language
including searching for a matching entry within contentMap
"""

View File

@ -2654,7 +2654,7 @@ def individual_post_as_html(signing_priv_key_pem: str,
languages_understood)
content_str = get_content_from_post(post_json_object, system_language,
languages_understood)
languages_understood, "content")
# remove any css styling within the post itself
content_str = remove_style_within_html(content_str)
@ -2751,7 +2751,7 @@ def individual_post_as_html(signing_priv_key_pem: str,
domain_full = get_full_domain(domain, port)
if not content_str:
content_str = get_content_from_post(post_json_object, system_language,
languages_understood)
languages_understood, "content")
# remove any css styling within the post itself
content_str = remove_style_within_html(content_str)
content_language = \