fd
This commit is contained in:
parent
1ee681b8f3
commit
ee7226448e
14 changed files with 160 additions and 6 deletions
|
@ -31,6 +31,8 @@ def api_flag_post(pid, v):
|
|||
|
||||
g.db.add(flag)
|
||||
|
||||
g.db.commit()
|
||||
|
||||
return {"message": "Post reported!"}
|
||||
|
||||
|
||||
|
@ -59,6 +61,8 @@ def api_flag_comment(cid, v):
|
|||
|
||||
g.db.add(flag)
|
||||
|
||||
g.db.commit()
|
||||
|
||||
return {"message": "Comment reported!"}
|
||||
|
||||
|
||||
|
@ -79,4 +83,6 @@ def remove_report(report_fn, v):
|
|||
|
||||
g.db.delete(report)
|
||||
|
||||
g.db.commit()
|
||||
|
||||
return {"message": "Removed report"}
|
Loading…
Add table
Add a link
Reference in a new issue