Extra line for content warnings

main
Bob Mottram 2020-01-03 09:37:30 +00:00
parent 5247c7c2ee
commit 39285fd2e2
1 changed files with 5 additions and 0 deletions

View File

@ -2617,6 +2617,11 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
if not postJsonObject['object'].get('sensitive'): if not postJsonObject['object'].get('sensitive'):
postJsonObject['object']['sensitive']=False postJsonObject['object']['sensitive']=False
# add an extra line if there is a content warning, for better vertical spacing on mobile
if postJsonObject['object']['sensitive']:
footerStr='<br>'+footerStr
if not postJsonObject['object'].get('summary'): if not postJsonObject['object'].get('summary'):
postJsonObject['object']['summary']='' postJsonObject['object']['summary']=''