fddf
This commit is contained in:
parent
d0b48a9dd5
commit
5e5311ebcd
1 changed files with 1 additions and 4 deletions
|
@ -337,16 +337,13 @@ def get_comment(cid, v=None, graceful=False, **kwargs):
|
||||||
x._is_blocked = block and block.target_id == v.id
|
x._is_blocked = block and block.target_id == v.id
|
||||||
|
|
||||||
else:
|
else:
|
||||||
q = g.db.query(
|
x = g.db.query(
|
||||||
Comment,
|
Comment,
|
||||||
).filter(Comment.id == i).first()
|
).filter(Comment.id == i).first()
|
||||||
|
|
||||||
if not q and not graceful:
|
if not q and not graceful:
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
x=q[0]
|
|
||||||
x._is_exiled_for=q[1]
|
|
||||||
|
|
||||||
|
|
||||||
return x
|
return x
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue