Show blogs button on news instance

merge-requests/8/head
Bob Mottram 2020-10-26 22:15:28 +00:00
parent 25b68c86ec
commit 5ece918e6d
1 changed files with 5 additions and 6 deletions

View File

@ -6034,12 +6034,11 @@ def getTimelineButtonHeader(defaultTimeline: str,
# but may change if this is a blogging oriented instance
if defaultTimeline != 'tlblogs':
if not minimal or defaultTimeline == 'tlnews':
if not newsHeader:
tlStr += \
' <a href="' + usersPath + \
'/tlblogs"><button class="' + \
blogsButton + '"><span>' + translate['Blogs'] + \
'</span></button></a>\n'
tlStr += \
' <a href="' + usersPath + \
'/tlblogs"><button class="' + \
blogsButton + '"><span>' + translate['Blogs'] + \
'</span></button></a>\n'
else:
if not minimal:
tlStr += \