diff --git a/webapp_post.py b/webapp_post.py
index 367277964..633d00dc7 100644
--- a/webapp_post.py
+++ b/webapp_post.py
@@ -846,6 +846,21 @@ def getReplyHtml(translate: {}, iconsPath: str,
replyDisplayName + '\n'
+def getReplyWithoutDisplayName(translate: {}, iconsPath: str,
+ inReplyTo: str,
+ replyNickname: str, replyDomain: str) -> str:
+ """Returns html for a reply without a display name,
+ only a handle nick@domain
+ """
+ return ' ' + \
+ '\n' + ' @' + \
+ replyNickname + '@' + replyDomain + '\n'
+
+
def logPostTiming(enableTimingLog: bool, postStartTime, debugId: str) -> None:
"""Create a log of timings for performance tuning
"""
@@ -962,19 +977,9 @@ def getPostTitleReplyHtml(baseDir: str,
inReplyTo = \
postJsonObject['object']['inReplyTo']
titleStr += \
- ' ' + \
- '\n' + \
- ' @' + \
- replyNickname + '@' + \
- replyDomain + '\n'
+ getReplyWithoutDisplayName(translate, iconsPath,
+ inReplyTo,
+ replyNickname, replyDomain)
else:
titleStr += \
replyToUnknownHtml(translate, iconsPath, postJsonObject)