fix 500 error

pull/222/head
Aevann 2024-02-01 00:15:21 +02:00
parent 4f76967a9f
commit bd24ed1974
1 changed files with 2 additions and 2 deletions

View File

@ -133,8 +133,8 @@ def remove_report_post(v, pid, uid):
user_id=v.id,
target_post_id=pid
)
g.db.add(ma)
g.db.add(ma)
return {"message": "Report removed successfully!"}
@ -159,8 +159,8 @@ def remove_report_comment(v, cid, uid):
user_id=v.id,
target_comment_id=cid
)
g.db.add(ma)
g.db.add(ma)
return {"message": "Report removed successfully!"}
def move_post(post, v, reason):