This commit is contained in:
Aevann1 2021-09-16 19:15:07 +02:00
parent ee7226448e
commit 0c75d5b7c8
10 changed files with 29 additions and 15 deletions

View file

@ -1182,8 +1182,6 @@ def toggle_post_nsfw(pid, v):
)
g.db.add(ma)
g.db.flush()
g.db.commit()
if post.over_18: return {"message": "Post has been marked as +18!"}
@ -1200,9 +1198,6 @@ def save_post(pid, v):
g.db.add(new_save)
try: g.db.flush()
except: g.db.rollback()
g.db.commit()
return {"message": "Post saved!"}