mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing body content in notifications.
This commit is contained in:
parent
a1e3414428
commit
e44df9cbd8
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue