diff --git a/files/routes/comments.py b/files/routes/comments.py index f45202176..83e65521e 100755 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -38,8 +38,10 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None): comment = get_comment(cid, v=v) if v and request.values.get("read"): + print(1) notif = g.db.query(Notification).options(lazyload('*')).filter_by(comment_id=cid, user_id=v.id, read=False).first() if notif: + print(2) notif.read = True g.db.add(notif) g.db.commit() diff --git a/files/templates/comments.html b/files/templates/comments.html index 0bd86b575..f60939316 100755 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -174,7 +174,7 @@
- + {% if standalone and c.over_18 %}+18 {% endif %} {% if c.is_banned %}removed by @{{c.ban_reason}}{% elif c.deleted_utc > 0 %}Deleted by author{% elif c.is_blocking %}You are blocking @{{c.author.username}}{% endif %}
@@ -255,7 +255,7 @@