Don't show posts button for system accounts

main
Bob Mottram 2020-10-13 11:04:07 +01:00
parent ea4f7c06f3
commit 18e9cd602c
1 changed files with 4 additions and 4 deletions

View File

@ -3449,11 +3449,11 @@ def htmlProfile(defaultTimeline: str,
linkToTimelineEnd + donateSection
profileStr += '<div class="container" id="buttonheader">\n'
profileStr += ' <center>'
profileStr += \
' <a href="' + usersPath + '#buttonheader"><button class="' + \
postsButton + '"><span>' + translate['Posts'] + \
' </span></button></a>'
if not isSystemAccount(nickname):
profileStr += \
' <a href="' + usersPath + '#buttonheader"><button class="' + \
postsButton + '"><span>' + translate['Posts'] + \
' </span></button></a>'
profileStr += \
' <a href="' + usersPath + '/following#buttonheader">' + \
'<button class="' + followingButton + '"><span>' + \