Snake case

main
Bob Mottram 2021-12-30 20:24:05 +00:00
parent ec7384681a
commit 89c1c1c5a8
3 changed files with 599 additions and 583 deletions

1174
content.py

File diff suppressed because it is too large Load Diff

View File

@ -142,7 +142,7 @@ from content import add_html_tags
from content import remove_long_words
from content import replace_content_duplicates
from content import remove_text_formatting
from content import remove_htmlTag
from content import remove_html_tag
from theme import update_default_themes_list
from theme import set_cs_sparam
from theme import scan_themes_for_scripts
@ -4015,7 +4015,7 @@ def _test_strip_html_tag():
print('testRemoveHtmlTag')
testStr = "<p><img width=\"864\" height=\"486\" " + \
"src=\"https://somesiteorother.com/image.jpg\"></p>"
resultStr = remove_htmlTag(testStr, 'width')
resultStr = remove_html_tag(testStr, 'width')
assert resultStr == "<p><img height=\"486\" " + \
"src=\"https://somesiteorother.com/image.jpg\"></p>"

View File

@ -412,7 +412,9 @@ def _get_reply_icon_html(base_dir: str, nickname: str, domain: str,
'?mention=' + post_json_object['object']['attributedTo']
content = get_base_content_from_post(post_json_object, system_language)
if content:
mentionedActors = get_mentions_from_html(content)
mentionedActors = \
get_mentions_from_html(content,
"<span class=\"h-card\"><a href=\"")
if mentionedActors:
for actorUrl in mentionedActors:
if '?mention=' + actorUrl not in replyToLink: