forked from indymedia/epicyon
Show emoji in display name
parent
bc03ed9c41
commit
d2344663f6
|
@ -38,6 +38,7 @@ from like import noOfLikes
|
|||
from announce import announcedByPerson
|
||||
from blocking import isBlocked
|
||||
from content import getMentionsFromHtml
|
||||
from content import addHtmlTags
|
||||
from config import getConfigParam
|
||||
from skills import getSkills
|
||||
from cache import getPersonFromCache
|
||||
|
@ -1742,6 +1743,9 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
|
|||
|
||||
displayName=getDisplayName(postJsonObject['actor'],personCache)
|
||||
if displayName:
|
||||
displayName= \
|
||||
addHtmlTags(baseDir,httpPrefix, \
|
||||
nickname,domain,displayName,[],{})
|
||||
titleStr+='<a href="'+messageId+'">'+displayName+'</a>'
|
||||
else:
|
||||
titleStr+='<a href="'+messageId+'">@'+actorNickname+'@'+actorDomain+'</a>'
|
||||
|
@ -1864,6 +1868,9 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
|
|||
if avatarUrl2:
|
||||
avatarUrl=avatarUrl2
|
||||
if displayName:
|
||||
displayName= \
|
||||
addHtmlTags(baseDir,httpPrefix, \
|
||||
nickname,domain,displayName,[],{})
|
||||
titleStr=displayName+' '+titleStr
|
||||
|
||||
avatarImageInPost= \
|
||||
|
|
Loading…
Reference in New Issue