diff --git a/webapp_profile.py b/webapp_profile.py index ab2af2084..4737a96db 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -310,7 +310,8 @@ def _getProfileHeader(baseDir: str, nickname: str, domain: str, avatarDescription: str, profileDescriptionShort: str, loginButton: str, avatarUrl: str, - theme: str, movedTo: str) -> str: + theme: str, movedTo: str, + alsoKnownAs: []) -> str: """The header of the profile screen, containing background image and avatar """ @@ -339,6 +340,23 @@ def _getProfileHeader(baseDir: str, nickname: str, domain: str, '

' + translate['New account'] + ': ' + \ '@' + \ newNickname + '@' + newDomainFull + '
\n' + elif alsoKnownAs: + htmlStr += \ + '

' + translate['Other accounts'] + ': ' + + if isinstance(alsoKnownAs, list): + ctr = 0 + for altActor in alsoKnownAs: + if ctr > 0: + htmlStr += ' ' + ctr += 1 + altDomain, altPort = getDomainFromActor(altActor) + htmlStr += \ + '' + altDomain + '' + elif isinstance(alsoKnownAs, str): + altDomain, altPort = getDomainFromActor(alsoKnownAs) + htmlStr += '' + altDomain + '' + htmlStr += '

\n' htmlStr += \ ' \n'