forked from rDrama/rDrama
1
0
Fork 0
Aevann 2023-11-16 14:50:33 +02:00
parent 38fec89705
commit 94bc1039ea
1 changed files with 5 additions and 0 deletions

View File

@ -736,6 +736,11 @@ def edit_comment(cid, v):
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
@auth_required
def commenters(v, pid, time):
p = get_post(pid)
if p.ghost:
abort(403, "You can't see commenters on ghost threads!")
users = g.db.query(User, Comment.id, Comment.created_utc).distinct(User.id).join(
Comment, Comment.author_id == User.id
).filter(