Show emoji in display name

main2
Bob Mottram 2019-09-23 11:05:16 +01:00
parent bc03ed9c41
commit d2344663f6
1 changed files with 7 additions and 0 deletions

View File

@ -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= \