fix sub 500

pull/52/head
justcool393 2022-12-08 13:29:43 -06:00
parent ad52b41fae
commit d6cfc9795f
1 changed files with 2 additions and 3 deletions

View File

@ -121,9 +121,8 @@ def comment(v:User):
if posting_to_submission:
sub = post_target.sub
if sub and v.exiled_from(sub): abort(403, f"You're exiled from /h/{sub}")
if sub in ('furry','vampire','racist','femboy') and not v.client and not v.house.lower().startswith(sub):
abort(403, f"You need to be a member of House {sub.capitalize()} to comment in /h/{sub}")
if sub in ('furry','vampire','racist','femboy') and not v.client and not v.house.lower().startswith(sub):
abort(403, f"You need to be a member of House {sub.capitalize()} to comment in /h/{sub}")
if not User.can_see(v, parent): abort(404)
if not isinstance(parent, User) and parent.deleted_utc != 0: abort(404)