From a4aa41c3154d2cfe7cddbad21cef7810f7ded600 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 12 Nov 2020 23:38:58 +0000 Subject: [PATCH] Display profile after handle search --- webapp_profile.py | 46 +++++++++++++++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/webapp_profile.py b/webapp_profile.py index 378139c5..94873fac 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,