From 39285fd2e2ccfe820ccd8e6abd622a6e90656184 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 3 Jan 2020 09:37:30 +0000 Subject: [PATCH] Extra line for content warnings --- webinterface.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webinterface.py b/webinterface.py index 091f8da9..1da13ece 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2617,6 +2617,11 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ if not postJsonObject['object'].get('sensitive'): 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='
'+footerStr + if not postJsonObject['object'].get('summary'): postJsonObject['object']['summary']=''