/contact should always only include messages from u

master
Aevann 2024-05-17 17:16:14 +03:00
parent 07fa533657
commit bcdaa20ec5
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ def modmail_listing(v):
comments = g.db.query(Comment).filter(Comment.id == sq.c.top_comment_id).order_by(sq.c.created_utc.desc())
if v.admin_level < PERMS['VIEW_MODMAIL']:
if request.path == '/contact':
comments = comments.filter_by(author_id=v.id)
total = comments.count()