more line for efficiency

pull/195/head
Aevann 2023-08-14 22:57:51 +03:00
parent 48da547fb8
commit c0a02b3b3c
1 changed files with 2 additions and 2 deletions

View File

@ -46,6 +46,8 @@ def post_pid_comment_cid(cid, v, pid=None, anything=None, sub=None):
comment = get_comment(cid, v=v)
if not User.can_see(v, comment): abort(403)
if comment.parent_post:
post = comment.parent_post
elif comment.wall_user_id:
@ -53,8 +55,6 @@ def post_pid_comment_cid(cid, v, pid=None, anything=None, sub=None):
else:
post = NOTIFICATION_THREAD
if not User.can_see(v, comment): abort(403)
if v and request.values.get("read"):
gevent.spawn(_mark_comment_as_read, comment.id, v.id)