From f8885e26b735027d5d2034cb6201cccd9eef021f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 12 Nov 2020 23:44:16 +0000 Subject: [PATCH] Show avatar background after search --- webapp_profile.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/webapp_profile.py b/webapp_profile.py index 94873facc..4fd0ad0fd 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -209,13 +209,18 @@ def htmlProfileAfterSearch(cssCache: {}, if '<' in avatarDescription: avatarDescription = removeHtml(avatarDescription) + imageUrl = '' + if profileJson.get('image'): + if profileJson['image'].get('url'): + imageUrl = profileJson['image']['url'] + profileStr = \ getProfileHeaderAfterSearch(baseDir, searchNickname, searchDomainFull, translate, displayName, profileDescriptionShort, - avatarUrl) + avatarUrl, imageUrl) profileStr += '
\n' profileStr += '
\n' + htmlStr += ' \n' htmlStr += '
\n' if avatarUrl: htmlStr += \