From 90aa7e3630609e36b1f1487dd2b93e1f381936d3 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 26 Nov 2021 21:28:53 +0200 Subject: [PATCH] 1 --- files/routes/posts.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index acce38216..2642623bd 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -34,15 +34,7 @@ def toggle_club(pid, v): post.club = not post.club g.db.add(post) - if post.author_id!=v.id: - ma=ModAction( - kind="club" if post.club else "unclub", - user_id=v.id, - target_submission_id=post.id, - ) - g.db.add(ma) - - g.db.commit() +W g.db.commit() if post.club: return {"message": "Post has been marked as club-only!"} else: return {"message": "Post has been unmarked as club-only!"}