forked from indymedia/epicyon
Check for colon in display name
parent
d2344663f6
commit
7dd794b531
BIN
emoji/ubuntu.png
BIN
emoji/ubuntu.png
Binary file not shown.
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 17 KiB |
|
@ -1743,9 +1743,10 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
|
||||||
|
|
||||||
displayName=getDisplayName(postJsonObject['actor'],personCache)
|
displayName=getDisplayName(postJsonObject['actor'],personCache)
|
||||||
if displayName:
|
if displayName:
|
||||||
displayName= \
|
if ':' in displayName:
|
||||||
addHtmlTags(baseDir,httpPrefix, \
|
displayName= \
|
||||||
nickname,domain,displayName,[],{})
|
addHtmlTags(baseDir,httpPrefix, \
|
||||||
|
nickname,domain,displayName,[],{})
|
||||||
titleStr+='<a href="'+messageId+'">'+displayName+'</a>'
|
titleStr+='<a href="'+messageId+'">'+displayName+'</a>'
|
||||||
else:
|
else:
|
||||||
titleStr+='<a href="'+messageId+'">@'+actorNickname+'@'+actorDomain+'</a>'
|
titleStr+='<a href="'+messageId+'">@'+actorNickname+'@'+actorDomain+'</a>'
|
||||||
|
@ -1868,9 +1869,10 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
|
||||||
if avatarUrl2:
|
if avatarUrl2:
|
||||||
avatarUrl=avatarUrl2
|
avatarUrl=avatarUrl2
|
||||||
if displayName:
|
if displayName:
|
||||||
displayName= \
|
if ':' in displayName:
|
||||||
addHtmlTags(baseDir,httpPrefix, \
|
displayName= \
|
||||||
nickname,domain,displayName,[],{})
|
addHtmlTags(baseDir,httpPrefix, \
|
||||||
|
nickname,domain,displayName,[],{})
|
||||||
titleStr=displayName+' '+titleStr
|
titleStr=displayName+' '+titleStr
|
||||||
|
|
||||||
avatarImageInPost= \
|
avatarImageInPost= \
|
||||||
|
|
Loading…
Reference in New Issue