forked from rDrama/rDrama
make it so you can't vote on messages
parent
129508b163
commit
ef840c4afd
|
@ -52,6 +52,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
|
||||||
target = get_post(target_id)
|
target = get_post(target_id)
|
||||||
elif cls == Comment:
|
elif cls == Comment:
|
||||||
target = get_comment(target_id)
|
target = get_comment(target_id)
|
||||||
|
if not target.post: abort(404)
|
||||||
else:
|
else:
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue