make snappy exiling behavior work in publishing drafts too

pull/173/head
Aevann 2023-07-25 20:49:56 +03:00
parent 0340aaf244
commit 8c682f0686
1 changed files with 3 additions and 0 deletions

View File

@ -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