From c6e9d38f53d1dfc09352137022d59e5e3bd467e9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 1 Dec 2020 13:17:51 +0000 Subject: [PATCH] Function for reply to unknown handle --- webapp_post.py | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/webapp_post.py b/webapp_post.py index 9d6349a7..d4fe01d1 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -850,6 +850,20 @@ def replyToYourselfHtml(translate: {}, iconsPath: str) -> str: '/reply.png" class="announceOrReply"/>\n' +def replyToUnknownHtml(translate: {}, iconsPath: str, + postJsonObject: {}) -> str: + """Returns the html title for a reply to an unknown handle + """ + return ' ' + \
+        translate['replying to'] + '\n' + \ + ' @unknown\n' + + def getPostTitleReplyHtml(baseDir: str, httpPrefix: str, nickname: str, domain: str, @@ -1007,16 +1021,7 @@ def getPostTitleReplyHtml(baseDir: str, replyDomain + '\n' else: titleStr += \ - ' ' + \
-                translate['replying to'] + \
-                '\n' + \ - ' @unknown\n' + replyToUnknownHtml(translate, iconsPath, postJsonObject) else: postDomain = \ postJsonObject['object']['inReplyTo']