From b790a8da01308bc589843e8c74934f06923087ef Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 6 Nov 2020 15:23:40 +0000 Subject: [PATCH] Define variable --- webinterface.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/webinterface.py b/webinterface.py index eac955ce8..43d28261c 100644 --- a/webinterface.py +++ b/webinterface.py @@ -6962,6 +6962,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str, if defaultTimeline == 'tlnews' and boxName == 'tlnews': newsHeader = True + newPostButtonStr = '' # start of headericons div if not newsHeader: if not iconsAsButtons: @@ -6970,7 +6971,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str, # what screen to go to when a new post is created if boxName == 'dm': if not iconsAsButtons: - newPostButtonStr = \ + newPostButtonStr += \ '| ' + translate['Create a new DM'] + \
                 '\n' else: - newPostButtonStr = \ + newPostButtonStr += \ '' + \ '' elif boxName == 'tlblogs' or boxName == 'tlnews': if not iconsAsButtons: - newPostButtonStr = \ + newPostButtonStr += \ '\n' else: - newPostButtonStr = \ + newPostButtonStr += \ '' + \ '' elif boxName == 'tlevents': if not iconsAsButtons: - newPostButtonStr = \ + newPostButtonStr += \ '\n' else: - newPostButtonStr = \ + newPostButtonStr += \ '' + \ '' else: if not manuallyApproveFollowers: if not iconsAsButtons: - newPostButtonStr = \ + newPostButtonStr += \ '\n' else: - newPostButtonStr = \ + newPostButtonStr += \ '' + \ '' else: if not iconsAsButtons: - newPostButtonStr = \ + newPostButtonStr += \ '| ' + translate['Create a new post'] + \
                     '\n' else: - newPostButtonStr = \ + newPostButtonStr += \ '' + \ ''