diff --git a/webinterface.py b/webinterface.py index bc6e60902..ee1b448a5 100644 --- a/webinterface.py +++ b/webinterface.py @@ -3423,16 +3423,19 @@ def htmlProfile(defaultTimeline: str, avatarDescription = profileJson['summary'].replace('
', '\n') avatarDescription = avatarDescription.replace('

', '') avatarDescription = avatarDescription.replace('

', '') - profileHeaderStr = '
' - profileHeaderStr += '
' + profileHeaderStr = '
\n' + profileHeaderStr += '
\n' - # TODO maybe display an alternate system account banner - if not isSystemAccount(nickname): + # If this is the news account then show a different banner + if isSystemAccount(nickname): + profileHeaderStr += '
\n' + profileHeaderStr += loginButton + else: profileHeaderStr += \ ' ' + \
-            avatarDescription + '' - profileHeaderStr += '

' + displayName + '

' + avatarDescription + '" class="title">\n' + profileHeaderStr += '

' + displayName + '

\n' iconsDir = getIconsDir(baseDir) profileHeaderStr += \ '

@' + nickname + '@' + domainFull + '
' @@ -3440,11 +3443,12 @@ def htmlProfile(defaultTimeline: str, '' + \ - '

' - profileHeaderStr += '

' + profileDescriptionShort + '

' - profileHeaderStr += loginButton - profileHeaderStr += '
' - profileHeaderStr += '
' + '

\n' + profileHeaderStr += '

' + profileDescriptionShort + '

\n' + profileHeaderStr += loginButton + profileHeaderStr += '
\n' + profileHeaderStr += '
\n' profileStr = \ linkToTimelineStart + profileHeaderStr + \