From 816b22464dafcff46f75aa628f0751b27e9e1d2f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 3 Nov 2021 16:06:20 +0200 Subject: [PATCH] fdsfds --- files/routes/posts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/posts.py b/files/routes/posts.py index 81df6e3a2b..be6522271f 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -72,6 +72,7 @@ def publish(pid, v): for follow in v.followers: user = get_account(follow.user_id) + if post.club and not user.club_allowed: continue send_notification(user.id, f"@{v.username} has made a new post: [{post.title}](http://{site}{post.permalink})", True) cache.delete_memoized(frontlist) @@ -782,6 +783,7 @@ def submit_post(v): for follow in v.followers: user = get_account(follow.user_id) + if new_post.club and not user.club_allowed: continue send_notification(user.id, f"@{v.username} has made a new post: [{title}](http://{site}{new_post.permalink})", True) g.db.add(new_post)