diff --git a/files/helpers/actions.py b/files/helpers/actions.py index a0216f6ec..7700afe33 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -266,6 +266,10 @@ def execute_snappy(post, v): def execute_zozbot(c, level, post, v): if SITE_NAME != 'rDrama': return + + if post.sub and g.db.query(Exile.user_id).filter_by(user_id=ZOZBOT_ID, sub=post.sub).one_or_none(): + return + posting_to_post = isinstance(post, Post) if random.random() >= 0.001: return c2 = Comment(author_id=ZOZBOT_ID, @@ -331,6 +335,10 @@ def execute_zozbot(c, level, post, v): def execute_longpostbot(c, level, body, body_html, post, v): if SITE_NAME != 'rDrama': return + + if post.sub and g.db.query(Exile.user_id).filter_by(user_id=LONGPOSTBOT_ID, sub=post.sub).one_or_none(): + return + posting_to_post = isinstance(post, Post) if not len(c.body.split()) >= 200: return if "" in body_html: return