Show blogs button on news instance

main
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 # but may change if this is a blogging oriented instance
if defaultTimeline != 'tlblogs': if defaultTimeline != 'tlblogs':
if not minimal or defaultTimeline == 'tlnews': if not minimal or defaultTimeline == 'tlnews':
if not newsHeader: tlStr += \
tlStr += \ ' <a href="' + usersPath + \
' <a href="' + usersPath + \ '/tlblogs"><button class="' + \
'/tlblogs"><button class="' + \ blogsButton + '"><span>' + translate['Blogs'] + \
blogsButton + '"><span>' + translate['Blogs'] + \ '</span></button></a>\n'
'</span></button></a>\n'
else: else:
if not minimal: if not minimal:
tlStr += \ tlStr += \