forked from indymedia/epicyon
Check that profile summary is a string
parent
ab63c79bc6
commit
da0c0b7e6e
|
@ -6076,9 +6076,10 @@ def htmlProfileAfterSearch(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
# remove formatting from profile description used on title
|
# remove formatting from profile description used on title
|
||||||
avatarDescription = ''
|
avatarDescription = ''
|
||||||
if profileJson.get('summary'):
|
if profileJson.get('summary'):
|
||||||
avatarDescription = profileJson['summary'].replace('<br>', '\n')
|
if isinstance(profileJson['summary'], str):
|
||||||
avatarDescription = avatarDescription.replace('<p>', '')
|
avatarDescription = profileJson['summary'].replace('<br>', '\n')
|
||||||
avatarDescription = avatarDescription.replace('</p>', '')
|
avatarDescription = avatarDescription.replace('<p>', '')
|
||||||
|
avatarDescription = avatarDescription.replace('</p>', '')
|
||||||
profileStr = ' <div class="hero-image">'
|
profileStr = ' <div class="hero-image">'
|
||||||
profileStr += ' <div class="hero-text">'
|
profileStr += ' <div class="hero-text">'
|
||||||
profileStr += \
|
profileStr += \
|
||||||
|
|
Loading…
Reference in New Issue