more line for efficiency
parent
48da547fb8
commit
c0a02b3b3c
|
@ -46,6 +46,8 @@ def post_pid_comment_cid(cid, v, pid=None, anything=None, sub=None):
|
||||||
|
|
||||||
comment = get_comment(cid, v=v)
|
comment = get_comment(cid, v=v)
|
||||||
|
|
||||||
|
if not User.can_see(v, comment): abort(403)
|
||||||
|
|
||||||
if comment.parent_post:
|
if comment.parent_post:
|
||||||
post = comment.parent_post
|
post = comment.parent_post
|
||||||
elif comment.wall_user_id:
|
elif comment.wall_user_id:
|
||||||
|
@ -53,8 +55,6 @@ def post_pid_comment_cid(cid, v, pid=None, anything=None, sub=None):
|
||||||
else:
|
else:
|
||||||
post = NOTIFICATION_THREAD
|
post = NOTIFICATION_THREAD
|
||||||
|
|
||||||
if not User.can_see(v, comment): abort(403)
|
|
||||||
|
|
||||||
if v and request.values.get("read"):
|
if v and request.values.get("read"):
|
||||||
gevent.spawn(_mark_comment_as_read, comment.id, v.id)
|
gevent.spawn(_mark_comment_as_read, comment.id, v.id)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue