From 8c682f0686a892809ba38d07e542adff3ffc5831 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 25 Jul 2023 20:49:56 +0300 Subject: [PATCH] make snappy exiling behavior work in publishing drafts too --- files/helpers/actions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/helpers/actions.py b/files/helpers/actions.py index 79cf025e0..4c9a22431 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -54,6 +54,9 @@ def snappy_report(post, reason): send_repeatable_notification(post.author_id, message) def execute_snappy(post:Post, v:User): + if post.sub and g.db.query(Exile.user_id).filter_by(user_id=SNAPPY_ID, sub=post.sub).one_or_none(): + return + group_members = [] ghost = post.ghost