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 += \
- ' ' + \
- '' + \
- '\n'
- else:
- editStr += \
- ' ' + \
- '' + \
- '\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 + '">' + \
'\n'
+ else:
+ editStr += \
+ ' ' + \
+ '' + \
+ '\n'
+ elif isEvent:
+ editEventStr = translate['Edit event']
+ editStr += \
+ ' ' + \
+ '' + \
+ '\n'
return editStr