diff --git a/webapp_post.py b/webapp_post.py index c3bf9b15..54839a42 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -314,44 +314,46 @@ def getEditIconHtml(baseDir: str, nickname: str, domainFull: str, postId = postJsonObject['object']['id'] - if '/statuses/' in postId: - if isBlogPost(postJsonObject): - editBlogPostStr = translate['Edit blog post'] - if not isNewsPost(postJsonObject): - editStr += \ - ' ' + \ - '' + \ - '' + editBlogPostStr + \
-                        ' |\n' - else: - editStr += \ - ' ' + \ - '' + \ - '' + editBlogPostStr + \
-                        ' |\n' - elif isEvent: - editEventStr = translate['Edit event'] + if '/statuses/' not in postId: + return editStr + + if isBlogPost(postJsonObject): + editBlogPostStr = translate['Edit blog post'] + if not isNewsPost(postJsonObject): editStr += \ ' ' + \ - '' + \ + '" title="' + editBlogPostStr + '">' + \ '' + editEventStr + \
+                    editBlogPostStr + '\n' + else: + editStr += \ + ' ' + \ + '' + \ + '' + editBlogPostStr + \
+                    ' |\n' + elif isEvent: + editEventStr = translate['Edit event'] + editStr += \ + ' ' + \ + '' + \ + '' + editEventStr + \
+                ' |\n' return editStr