diff --git a/files/routes/users.py b/files/routes/users.py index 4fbb5a81e..625bc1bfb 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -126,7 +126,7 @@ def messagereply(v, username, id): notif = Notification(comment_id=new_comment.id, user_id=user.id) g.db.add(notif) - if not request.referrer or request.referrer.endswith('/notifications'): return redirect("/notifications?all=true") + if not request.referrer or request.referrer.endswith('/notifications'): return redirect(f"/notifications?all=true/#comment-") else: return redirect(request.referrer) diff --git a/files/templates/submission.html b/files/templates/submission.html index 3ed8e70c0..9f6c1fcfd 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -98,7 +98,7 @@ {% if v and v.id==p.author_id %} {% if p.private %} - + {% endif %} @@ -106,7 +106,7 @@ {% if p.deleted_utc > 0 %} - + {% else %} {% endif %} @@ -119,15 +119,15 @@ {% endif %} {% if v and p.id in v.subscribed_idlist() %} - + {% elif v %} - + {% endif %} {% if v and p.id in v.saved_idlist() %} - + {% elif v %} - + {% endif %} {% if v %} @@ -155,14 +155,14 @@ {% endif %} {% if v and (v.id==p.author_id or v.admin_level>=3) %} - + {% endif %} {% if v and v.admin_level == 6 and v.id!=p.author_id %} {% if p.author.is_suspended %} - + {% else %} - + {% endif %} {% endif %} diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index 954a5bab1..49e00b4a5 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -302,13 +302,13 @@ {% if v and v.id==p.author_id %} {% if p.private %} - + {% endif %} {% if p.deleted_utc > 0 %} - + {% else %} {% endif %} @@ -321,15 +321,15 @@ {% endif %} {% if v and p.id in v.subscribed_idlist() %} - + {% elif v %} - + {% endif %} {% if v and p.id in v.saved_idlist() %} - + {% elif v %} - + {% endif %} {% if v %} @@ -357,14 +357,14 @@ {% endif %} {% if v and (v.id==p.author_id or v.admin_level>=3) %} - + {% endif %} {% if v and v.admin_level == 6 and v.id!=p.author_id %} {% if p.author.is_suspended %} - + {% else %} - + {% endif %} {% endif %}