From e44df9cbd83f1abb880ce096356e86cd160375af Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Wed, 26 May 2021 11:16:17 -0400 Subject: [PATCH] Fixing body content in notifications. --- apps/notifications/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/notifications/models.py b/apps/notifications/models.py index 3be7d70c5..b6b8fc166 100644 --- a/apps/notifications/models.py +++ b/apps/notifications/models.py @@ -201,7 +201,9 @@ class MUserFeedNotification(mongo.Document): subtitle = None body_title = html.unescape(story['story_title']).strip() body_content = replace_with_newlines(soup) - body = f"{body_title}{"\n⁙ " if body_content else ""}{body_content}" + if body_content: + body_content = f"\n⁙ {body_content}" + body = f"{body_title}{body_content}" else: subtitle = html.unescape(story['story_title']) body = replace_with_newlines(soup)