fix ghost threads

pull/52/head
justcool393 2022-12-08 13:31:24 -06:00
parent d6cfc9795f
commit 5f2a66afd5
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ def comment(v:User):
post_target = get_post(parent.parent_submission, v=v, graceful=True) or get_account(parent.wall_user_id, v=v, include_blocks=True, include_shadowbanned=False)
parent_comment_id = parent.id
if parent.author_id == v.id: rts = True
if not v.can_post_in_ghost_threads and post_target.ghost: abort(403, f"You need {TRUESCORE_GHOST_MINIMUM} truescore to post in ghost threads")
if not v.can_post_in_ghost_threads and isinstance(post_target, Submission) and post_target.ghost: abort(403, f"You need {TRUESCORE_GHOST_MINIMUM} truescore to post in ghost threads")
else: abort(404)
level = 1 if isinstance(parent, (Submission, User)) else int(parent.level) + 1