diff --git a/webinterface.py b/webinterface.py index 9a8c7ed9..392b78c8 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 = \