diff --git a/webapp_post.py b/webapp_post.py index d4fe01d1c..c41767aac 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -864,6 +864,24 @@ def replyToUnknownHtml(translate: {}, iconsPath: str, '" class="announceOrReply">@unknown\n' +def replyWithUnknownPath(translate: {}, iconsPath: str, + postJsonObject: {}, + postDomain: str) -> str: + """Returns html title for a reply with an unknown path + eg. does not contain /statuses/ + """ + return ' ' + translate['replying to'] + \
+        '\n' + \ + ' ' + \ + postDomain + '\n' + + def getPostTitleReplyHtml(baseDir: str, httpPrefix: str, nickname: str, domain: str, @@ -1032,16 +1050,8 @@ def getPostTitleReplyHtml(baseDir: str, postDomain = postDomain.split('/', 1)[0] if postDomain: titleStr += \ - ' ' + translate['replying to'] + \
-                '\n' + \ - ' ' + \ - postDomain + '\n' + replyWithUnknownPath(translate, iconsPath, + postJsonObject, postDomain) return (titleStr, replyAvatarImageInPost, containerClassIcons, containerClass)