Revert "use notify_mod_actions in deletion msg"

This reverts commit d7a84a2188.
remotes/1693045480750635534/spooky-22
Aevann1 2022-06-17 21:28:37 +02:00
parent d7a84a2188
commit 62d5a0d8dc
1 changed files with 3 additions and 1 deletions

View File

@ -463,8 +463,10 @@ def sub_inactive_purge_task():
for x in mods:
send_repeatable_notification(x.user_id, f":marseyrave: /h/{x.sub} has been deleted for inactivity after one week without new posts. All posts in it have been moved to the main feed :marseyrave:")
admins = [x[0] for x in g.db.query(User.id).filter(User.admin_level > 1).all()]
for name in names:
notify_mod_action(0, f":marseyrave: /h/{name} has been deleted for inactivity after one week without new posts. All posts in it have been moved to the main feed :marseyrave:")
for admin in admins:
send_repeatable_notification(admin, f":marseyrave: /h/{name} has been deleted for inactivity after one week without new posts. All posts in it have been moved to the main feed :marseyrave:")
posts = g.db.query(Submission).filter(Submission.sub.in_(names)).all()
for post in posts: