fix ghost

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-11-15 08:21:23 -06:00
parent 1f16140367
commit 9b734a8e3a
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ def comment(v):
parent_post = get_post(parent.parent_submission, v=v)
parent_comment_id = parent.id
if parent.author_id == v.id: rts = True
if not v.can_post_in_ghost_threads: abort(403, f"You need {TRUESCORE_GHOST_LIMIT} truescore to post in ghost threads")
if not v.can_post_in_ghost_threads and parent_post.ghost: abort(403, f"You need {TRUESCORE_GHOST_LIMIT} truescore to post in ghost threads")
else: abort(400)
level = 1 if isinstance(parent, Submission) else parent.level + 1