This commit is contained in:
Aevann1 2021-07-23 17:18:21 +02:00
parent e77561f0c0
commit 8a0083f2df
13 changed files with 53 additions and 23 deletions

View file

@ -70,7 +70,7 @@ def postbanaward(post_id, v):
post.banaward = v.username
g.db.add(post)
return jsonify({"message": "User banned successfully!"}), 200
return jsonify({"message": "User banned successfully!"}), 204
@app.route("/api/publish/<pid>", methods=["POST"])
@is_not_banned