Bubble [main]

Bumped version number to 5.2; fixed exception

=> 0108a9a79d3af9b9b1a11cb377a4e260375a991b

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'
Proxy Information
Original URL
gemini://git.skyjake.fi/bubble/main/cdiff/0108a9a79d3af9b9b1a11cb377a4e260375a991b
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
25.147764 milliseconds
Gemini-to-HTML Time
0.198732 milliseconds

This content has been proxied by September (ba2dc).