fdfd
parent
a95a9ba8dc
commit
1dc63a0b68
|
@ -12,8 +12,7 @@ def api_flag_post(pid, v):
|
||||||
|
|
||||||
if v:
|
if v:
|
||||||
existing = g.db.query(Flag).filter_by(
|
existing = g.db.query(Flag).filter_by(
|
||||||
user_id=v.id, post_id=post.id).filter(
|
user_id=v.id, post_id=post.id).first()
|
||||||
Flag.created_utc >= post.edited_utc).first()
|
|
||||||
|
|
||||||
if existing:
|
if existing:
|
||||||
return "", 409
|
return "", 409
|
||||||
|
@ -37,8 +36,7 @@ def api_flag_comment(cid, v):
|
||||||
|
|
||||||
if v:
|
if v:
|
||||||
existing = g.db.query(CommentFlag).filter_by(
|
existing = g.db.query(CommentFlag).filter_by(
|
||||||
user_id=v.id, comment_id=comment.id).filter(
|
user_id=v.id, comment_id=comment.id).first()
|
||||||
CommentFlag.created_utc >= comment.edited_utc).first()
|
|
||||||
|
|
||||||
if existing:
|
if existing:
|
||||||
return "", 409
|
return "", 409
|
||||||
|
|
Loading…
Reference in New Issue