remotes/1693045480750635534/spooky-22
Aevann1 2021-09-23 19:18:33 +02:00
parent 9a99c55eba
commit 93fa545ffb
1 changed files with 6 additions and 0 deletions

View File

@ -994,6 +994,9 @@ def ban_post(post_id, v):
cache.delete_memoized(frontlist)
v.coins += 1
g.db.add(v)
g.db.commit()
return {"message": "Post removed!"}
@ -1024,6 +1027,9 @@ def unban_post(post_id, v):
cache.delete_memoized(frontlist)
v.coins -= 1
g.db.add(v)
g.db.commit()
return {"message": "Post approved!"}