From aa6809ea927f99ff3d048a0a525b3c5d4f71c3ea Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 30 Sep 2019 09:30:02 +0100 Subject: [PATCH] Add emoji to display names --- webinterface.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webinterface.py b/webinterface.py index f4d4b6b27..85a193866 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1709,6 +1709,10 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \ announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['attributedTo']) announceDisplayName=getDisplayName(postJsonObject['object']['attributedTo'],personCache) if announceDisplayName: + announceDisplayName= \ + addEmojiToDisplayName(baseDir,httpPrefix, \ + nickname,domain, \ + announceDisplayName,False) titleStr+=' '+announceDisplayName+'' # show avatar of person replied to announceActor=postJsonObject['object']['attributedTo'] @@ -1741,6 +1745,10 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \ if replyNickname and replyDomain: replyDisplayName=getDisplayName(postJsonObject['object']['inReplyTo'],personCache) if replyDisplayName: + replyDisplayName= \ + addEmojiToDisplayName(baseDir,httpPrefix, \ + nickname,domain, \ + replyDisplayName,False) titleStr+=' '+replyDisplayName+'' # show avatar of person replied to