[1mdiff --git a/feeds.py b/feeds.py[m
[1mindex 9cf6e82..1b823ce 100644[m
[1m--- a/feeds.py[m
[1m+++ b/feeds.py[m
[36m@@ -254,10 +254,11 @@[m [mdef make_post_page(session, post):[m
last_age = focused_cmt.age()[m
post_id = post.parent[m
post = db.get_post(id=post_id)[m
[32m+[m[32m page += f'# Comment by {focused_cmt.poster_avatar} {focused_cmt.poster_name}\n\n'[m
if post:[m
page += f'=> {post.page_url()} Re: "{post.title if post.title else shorten_text(strip_links(clean_title(post.summary)), 60)}"\n'[m
sub_name = ("u/" if post.sub_owner else "s/") + post.sub_name[m
[31m- page += f'=> /{sub_name} Comment in: {sub_name}\n\n'[m
[32m+[m[32m page += f'=> /{sub_name} In: {sub_name}\n\n'[m
else:[m
if not session.user or session.user.id != focused_cmt.user:[m
# Can't view others' comments on deleted posts, just your own.[m
[36m@@ -273,19 +274,22 @@[m [mdef make_post_page(session, post):[m
if post:[m
if session.is_editable(focused_cmt):[m
actions.append(f'=> /edit/{focused_cmt.id} ✏️ Edit comment\n')[m
[31m- if post and session.user and not session.is_context_locked and display_order_desc and \[m
[32m+[m[32m elif session.is_deletable(focused_cmt):[m
[32m+[m[32m actions.append(f'=> /edit/{focused_cmt.id}/delete/{session.get_token()} ❌ Delete comment\n')[m
[32m+[m[32m if post and session.user and not session.is_context_locked and \[m
session.user.role != User.LIMITED:[m
[31m- actions.append(f'=> /comment/{post.id} 💬 Comment\n')[m
[32m+[m[32m actions.append(f'=> /comment/{post.id} 💬 Add comment\n')[m
if session.is_thanks_enabled() and focused_cmt.user != user.id:[m
actions.append(f'=> /thanks/{focused_cmt.id} 🙏 Give thanks\n')[m
[31m- if session.is_deletable(focused_cmt) and (not session.is_editable(focused_cmt) or not post):[m
[31m- actions.append(f'=> /edit/{focused_cmt.id}/delete/{session.get_token()} ❌ Delete comment\n')[m
[32m+[m[32m else:[m
[32m+[m[32m if session.is_deletable(focused_cmt): # and (not session.is_editable(focused_cmt) or not post):[m
[32m+[m[32m actions.append(f'=> /edit/{focused_cmt.id}/delete/{session.get_token()} ❌ Delete comment\n')[m
if actions:[m
page += '\n## Actions\n' + ''.join(actions)[m
page += '\n' + session.dashboard_link()[m
[m
if post:[m
[31m- op_section = '\n## Original Post\n\n' + session.feed_entry(post)[m
[32m+[m[32m op_section = '\n# Original Post\n\n' + session.feed_entry(post)[m
else:[m
op_section = ''[m
[m
[36m@@ -450,8 +454,11 @@[m [mdef make_post_page(session, post):[m
comments = list(filter(lambda p: p.id != focused_cmt.id and p.user == focused_cmt.user,[m
comments))[m
[m
[32m+[m[32m have_other_comments = False[m
n = len(comments)[m
[32m+[m
if n > 0 or commits or incoming_xrefs:[m
[32m+[m[32m have_other_comments = True[m
if n > 1:[m
dir_icon = ' ↑' if display_order_desc else ' ↓'[m
else:[m
[36m@@ -523,7 +530,8 @@[m [mdef make_post_page(session, post):[m
page += '\n' + rendered[m
[m
# Show the Comment action at the appropriate place wrt reading direction.[m
[31m- if (session.user[m
[32m+[m[32m if (have_other_comments[m
[32m+[m[32m and session.user[m
and session.user.role != User.LIMITED[m
and post[m
and not session.is_context_locked[m
text/plain
This content has been proxied by September (ba2dc).