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 += '