diff --git a/webinterface.py b/webinterface.py
index 2522a2967..86b18a675 100644
--- a/webinterface.py
+++ b/webinterface.py
@@ -1813,10 +1813,11 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
getPersonFromCache(baseDir,postJsonObject['object']['attributedTo'],personCache)
announceDisplayName=getDisplayName(baseDir,postJsonObject['object']['attributedTo'],personCache)
if announceDisplayName:
- announceDisplayName= \
- addEmojiToDisplayName(baseDir,httpPrefix, \
- nickname,domain, \
- announceDisplayName,False)
+ if ':' in announceDisplayName:
+ announceDisplayName= \
+ addEmojiToDisplayName(baseDir,httpPrefix, \
+ nickname,domain, \
+ announceDisplayName,False)
titleStr+='
'+announceDisplayName+''
# show avatar of person replied to
announceActor=postJsonObject['object']['attributedTo']
@@ -1851,10 +1852,11 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
getPersonFromCache(baseDir,replyActor,personCache)
replyDisplayName=getDisplayName(baseDir,replyActor,personCache)
if replyDisplayName:
- replyDisplayName= \
- addEmojiToDisplayName(baseDir,httpPrefix, \
- nickname,domain, \
- replyDisplayName,False)
+ if ':' in replyDisplayName:
+ replyDisplayName= \
+ addEmojiToDisplayName(baseDir,httpPrefix, \
+ nickname,domain, \
+ replyDisplayName,False)
titleStr+='
'+replyDisplayName+''
# show avatar of person replied to