diff --git a/webapp_profile.py b/webapp_profile.py index 94873fac..4fd0ad0f 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 += \