forked from rDrama/rDrama
1
0
Fork 0

make it so you can't vote on messages

master
justcool393 2022-10-15 10:12:55 -07:00
parent 129508b163
commit ef840c4afd
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)