Too much whitespace in notifications.

This commit is contained in:
Samuel Clay 2021-05-18 10:22:46 -04:00
parent 2e5ca80b56
commit 647a43415d

View file

@ -197,8 +197,8 @@ class MUserFeedNotification(mongo.Document):
soup = BeautifulSoup(story['story_content'].strip(), features="lxml")
if notification_title_only:
subtitle = None
body_title = html.unescape(story['story_title'])
body_content = replace_with_newlines(soup)
body_title = html.unescape(story['story_title']).strip()
body_content = replace_with_newlines(soup).strip()
body = f"{body_title}\n{body_content}"
else:
subtitle = html.unescape(story['story_title'])