forked from rDrama/rDrama
make snappy exiling behavior work in publishing drafts too
parent
0340aaf244
commit
8c682f0686
|
@ -54,6 +54,9 @@ def snappy_report(post, reason):
|
||||||
send_repeatable_notification(post.author_id, message)
|
send_repeatable_notification(post.author_id, message)
|
||||||
|
|
||||||
def execute_snappy(post:Post, v:User):
|
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 = []
|
group_members = []
|
||||||
|
|
||||||
ghost = post.ghost
|
ghost = post.ghost
|
||||||
|
|
Loading…
Reference in New Issue