diff --git a/webapp_profile.py b/webapp_profile.py index 378139c56..94873facc 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -209,19 +209,13 @@ def htmlProfileAfterSearch(cssCache: {}, if '<' in avatarDescription: avatarDescription = removeHtml(avatarDescription) - profileStr = '
\n' - profileStr += '
\n' - if avatarUrl: - profileStr += \ - ' ' + avatarDescription + '\n' - profileStr += '

' + displayName + '

\n' - profileStr += '

@' + searchNickname + '@' + \ - searchDomainFull + '

\n' - profileStr += '

' + profileDescriptionShort + '

\n' - profileStr += '
\n' - profileStr += '
\n' + profileStr = \ + getProfileHeaderAfterSearch(baseDir, searchNickname, + searchDomainFull, + translate, + displayName, + profileDescriptionShort, + avatarUrl) profileStr += '
\n' profileStr += '
\n' + htmlStr += '
\n' + if avatarUrl: + htmlStr += \ + ' \n' + htmlStr += '

' + displayName + '

\n' + htmlStr += \ + '

@' + searchNickname + '@' + searchDomainFull + '
\n' + htmlStr += '

' + profileDescriptionShort + '

\n' + htmlStr += '
\n' + htmlStr += ' \n\n' + return htmlStr + + def htmlProfile(rssIconAtTop: bool, cssCache: {}, iconsAsButtons: bool, defaultTimeline: str,