Switch arguments

main2
Bob Mottram 2019-09-23 12:39:58 +01:00
parent 0580bd86de
commit 1a5ed483bb
1 changed files with 4 additions and 4 deletions

View File

@ -1745,10 +1745,10 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
if displayName: if displayName:
if ':' in displayName: if ':' in displayName:
displayName=displayName.replace('<p>','').replace('</p>','') displayName=displayName.replace('<p>','').replace('</p>','')
emojiTags={} emojiTags=[]
displayName= \ displayName= \
addHtmlTags(baseDir,httpPrefix, \ addHtmlTags(baseDir,httpPrefix, \
nickname,domain,displayName,[],emojiTags) nickname,domain,displayName,emojiTags,{})
displayName=displayName.replace('<p>','').replace('</p>','') displayName=displayName.replace('<p>','').replace('</p>','')
displayName=htmlReplaceEmojiFromTags(displayName,emojiTags) displayName=htmlReplaceEmojiFromTags(displayName,emojiTags)
titleStr+='<a href="'+messageId+'">'+displayName+'</a>' titleStr+='<a href="'+messageId+'">'+displayName+'</a>'
@ -1875,10 +1875,10 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
if displayName: if displayName:
if ':' in displayName: if ':' in displayName:
displayName=displayName.replace('<p>','').replace('</p>','') displayName=displayName.replace('<p>','').replace('</p>','')
emojiTags={} emojiTags=[]
displayName= \ displayName= \
addHtmlTags(baseDir,httpPrefix, \ addHtmlTags(baseDir,httpPrefix, \
nickname,domain,displayName,[],emojiTags) nickname,domain,displayName,emojiTags,{})
displayName=displayName.replace('<p>','').replace('</p>','') displayName=displayName.replace('<p>','').replace('</p>','')
displayName=htmlReplaceEmojiFromTags(displayName,emojiTags) displayName=htmlReplaceEmojiFromTags(displayName,emojiTags)
titleStr=displayName+' '+titleStr titleStr=displayName+' '+titleStr