Longer variable name

merge-requests/30/head
Bob Mottram 2024-02-25 15:21:23 +00:00
parent f32333953c
commit bf228fdb10
1 changed files with 5 additions and 5 deletions

View File

@ -1125,15 +1125,15 @@ def _add_schedule_post(base_dir: str, nickname: str, domain: str,
schedule_index_filename + ' ' + str(ex)) schedule_index_filename + ' ' + str(ex))
def valid_content_warning(cw: str) -> str: def valid_content_warning(summary: str) -> str:
"""Returns a validated content warning """Returns a validated content warning
""" """
cw = remove_html(cw) cw_str = remove_html(summary)
# hashtags within content warnings apparently cause a lot of trouble # hashtags within content warnings apparently cause a lot of trouble
# so remove them # so remove them
if '#' in cw: if '#' in cw_str:
cw = cw.replace('#', '').replace(' ', ' ') cw_str = cw_str.replace('#', '').replace(' ', ' ')
return remove_invalid_chars(cw) return remove_invalid_chars(cw_str)
def _create_post_cw_from_reply(base_dir: str, nickname: str, domain: str, def _create_post_cw_from_reply(base_dir: str, nickname: str, domain: str,