Bubble [main]

Improve post actions usability

=> 8f1236d962f5e4ac5fe40e064b609e497bba7962

diff --git a/feeds.py b/feeds.py
index 859a8bf..4e26462 100644
--- a/feeds.py
+++ b/feeds.py
@@ -218,7 +218,7 @@ def make_post_page(session, post):
         outgoing_xrefs = db.get_issue_crossrefs(session.context,
                                                 outgoing_from_issueid=post.issueid)
     n = len(comments)
-    if n > 0 or commits:
+    if n > 0 or commits or incoming_xrefs:
         dir_icon = '↑' if display_order_desc else '↓'
         page += f'\n## {n} Comment{plural_s(n)} {dir_icon}'
 
@@ -281,6 +281,12 @@ def make_post_page(session, post):
             rendered_comments.reverse()
         for rendered in rendered_comments:
             page += '\n' + rendered
+
+    # Show the Comment action at the appropriate place wrt reading direction.
+    if session.user and not session.is_context_locked and \
+            len(comments) > 1 and not display_order_desc:
+        page += f'\n=> /comment/{post.id} 💬 Comment\n'
+
     return page
 
 
Proxy Information
Original URL
gemini://git.skyjake.fi/bubble/main/cdiff/8f1236d962f5e4ac5fe40e064b609e497bba7962
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
97.134229 milliseconds
Gemini-to-HTML Time
0.2085 milliseconds

This content has been proxied by September (ba2dc).