diff --git a/webinterface.py b/webinterface.py index 554d60482..a169361e2 100644 --- a/webinterface.py +++ b/webinterface.py @@ -6076,11 +6076,12 @@ def htmlProfileAfterSearch(recentPostsCache: {}, maxRecentPosts: int, # remove formatting from profile description used on title avatarDescription = '' if profileJson.get('summary'): - avatarDescription = profileJson['summary'].replace('
', '\n') - avatarDescription = avatarDescription.replace('

', '') - avatarDescription = avatarDescription.replace('

', '') + if isinstance(profileJson['summary'], str): + avatarDescription = profileJson['summary'].replace('
', '\n') + avatarDescription = avatarDescription.replace('

', '') + avatarDescription = avatarDescription.replace('

', '') profileStr = '
' - profileStr += '
' + profileStr += '
' profileStr += \ '