From a7cd3d160e845991f2efc1a9eaaa86b50ef7a56b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 8 Oct 2020 10:14:21 +0100 Subject: [PATCH] No delete button for news posts --- webinterface.py | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/webinterface.py b/webinterface.py index 9a8c7ed91..392b78c8d 100644 --- a/webinterface.py +++ b/webinterface.py @@ -4686,15 +4686,18 @@ def individualPostAsHtml(allowDownloads: bool, ('/' + fullDomain + '/' in postActor and messageId.startswith(postActor))): if '/users/' + nickname + '/' in messageId: - deleteStr = \ - ' \n' - deleteStr += \ - ' ' + \ - '' + translate['Delete this post'] + \
-                ' |\n' + if not isNewsPost(postJsonObject): + deleteStr = \ + ' \n' + deleteStr += \ + ' ' + \ + '' + \
+                    translate['Delete this post'] + \
+                    ' |\n' else: if not isMuted: muteStr = \