forked from rDrama/rDrama
1
0
Fork 0

Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost

master
Aevann1 2022-10-15 19:21:34 +02:00
commit c0b6fc1b42
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
target = get_post(target_id)
elif cls == Comment:
target = get_comment(target_id)
if not target.post: abort(404)
else:
abort(404)