diff --git a/webinterface.py b/webinterface.py index 2a027fa8..da90ba16 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1414,7 +1414,7 @@ def contentWarningScript() -> str: '}\n' return script -def htmlRemplaceEmojiFromTags(content: str,tag: {}) -> str: +def htmlReplaceEmojiFromTags(content: str,tag: {}) -> str: """Uses the tags to replace :emoji: with html image markup """ for tagItem in tag: @@ -1750,7 +1750,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \ addHtmlTags(baseDir,httpPrefix, \ nickname,domain,displayName,[],emojiTags) displayName=displayName.replace('
','').replace('
','') - displayName=htmlRemplaceEmojiFromTags(displayName,emojiTags) + displayName=htmlReplaceEmojiFromTags(displayName,emojiTags) titleStr+=''+displayName+'' else: titleStr+='@'+actorNickname+'@'+actorDomain+'' @@ -1880,7 +1880,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \ addHtmlTags(baseDir,httpPrefix, \ nickname,domain,displayName,[],emojiTags) displayName=displayName.replace('','').replace('
','') - displayName=htmlRemplaceEmojiFromTags(displayName,emojiTags) + displayName=htmlReplaceEmojiFromTags(displayName,emojiTags) titleStr=displayName+' '+titleStr avatarImageInPost= \ @@ -2006,7 +2006,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \ contentStr+='' if postJsonObject['object'].get('tag'): - contentStr=htmlRemplaceEmojiFromTags(contentStr,postJsonObject['object']['tag']) + contentStr=htmlReplaceEmojiFromTags(contentStr,postJsonObject['object']['tag']) contentStr=' '