diff --git a/50_bubble.py b/50_bubble.py index 64bc77b..ab50de9 100644 --- a/50_bubble.py +++ b/50_bubble.py @@ -17,7 +17,7 @@ from utils import * from worker import *   -__version__ = '5.1' +__version__ = '5.2'   class Bubble: diff --git a/feeds.py b/feeds.py index 624babc..d0ad2d9 100644 --- a/feeds.py +++ b/feeds.py @@ -406,7 +406,7 @@ def make_post_page(session, post): page += '\n' + session.dashboard_link()  # Notification on this page. - if post: + if post and user: notifs = db.get_notifications(user=user, post_id=post.id, sort_desc=True) if notifs: page += f'{len(notifs)} notification{plural_s(len(notifs))} about this post:\n'