diff --git a/webinterface.py b/webinterface.py
index 9bf1a83a7..c3e105172 100644
--- a/webinterface.py
+++ b/webinterface.py
@@ -2298,9 +2298,6 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
galleryStr+=' \n'
galleryStr+=' \n'
galleryStr+=' \n'
- galleryStr+='
\n'
- galleryStr+=' '+replyStr+announceStr+likeStr+bookmarkStr+deleteStr+'\n'
- galleryStr+='
\n'
if postJsonObject['object'].get('url'):
imagePostUrl=postJsonObject['object']['url']
else:
@@ -2309,6 +2306,9 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
galleryStr+=' '+imageDescription+'
\n'
else:
galleryStr+='
'
+ galleryStr+=' \n'
+ galleryStr+=' '+replyStr+announceStr+likeStr+bookmarkStr+deleteStr+'\n'
+ galleryStr+='
\n'
galleryStr+='\n'
attachmentStr+=''