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 @@
+ {% for f in p.ordered_flags %} +- {{f.user.username}}{% if f.reason %}: {{f.reason | safe}}{% endif %} {% if v.admin_level==6 %}[remove]{% endif %}
+ {% endfor %}
+
+- {% for f in p.ordered_flags %} -- {{f.user.username}}{% if f.reason %}: {{f.reason | safe}}{% endif %} {% if v.admin_level==6 %}[remove]{% endif %}
- {% endfor %}
-
-