Change profile for news account

main
Bob Mottram 2020-10-13 11:17:22 +01:00
parent 18e9cd602c
commit b987367bda
1 changed files with 20 additions and 18 deletions

View File

@ -3339,7 +3339,6 @@ def htmlProfile(defaultTimeline: str,
donateSection += '</div>\n'
if not authorized:
if not isSystemAccount(nickname):
loginButton = \
'<br><a href="/login"><button class="loginButton">' + \
translate['Login'] + '</button></a>'
@ -3426,6 +3425,9 @@ def htmlProfile(defaultTimeline: str,
avatarDescription = avatarDescription.replace('</p>', '')
profileHeaderStr = '<div class="hero-image">'
profileHeaderStr += ' <div class="hero-text">'
# TODO maybe display an alternate system account banner
if not isSystemAccount(nickname):
profileHeaderStr += \
' <img loading="lazy" src="' + profileJson['icon']['url'] + \
'" title="' + avatarDescription + '" alt="' + \