This commit is contained in:
Aevann1 2021-09-16 19:02:58 +02:00
parent 1ee681b8f3
commit ee7226448e
14 changed files with 160 additions and 6 deletions

View file

@ -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"}