diff --git a/webinterface.py b/webinterface.py index a672a2e6..eac955ce 100644 --- a/webinterface.py +++ b/webinterface.py @@ -6957,6 +6957,16 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str, if timeDiff > 100: print('TIMELINE TIMING ' + boxName + ' 4 = ' + str(timeDiff)) + # if this is a news instance and we are viewing the news timeline + newsHeader = False + if defaultTimeline == 'tlnews' and boxName == 'tlnews': + newsHeader = True + + # start of headericons div + if not newsHeader: + if not iconsAsButtons: + newPostButtonStr += '
' + # what screen to go to when a new post is created if boxName == 'dm': if not iconsAsButtons: @@ -7030,17 +7040,6 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str, '' - - # if this is a news instance and we are viewing the news timeline - newsHeader = False - if defaultTimeline == 'tlnews' and boxName == 'tlnews': - newsHeader = True - - # start of headericons div - if not newsHeader: - if not iconsAsButtons: - newPostButtonStr += '
' - # This creates a link to the profile page when viewed # in lynx, but should be invisible in a graphical web browser tlStr += \