From 6f53afd4b9611cf50b028e7c3ec133a237785844 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Fri, 27 Dec 2024 22:21:58 +1300 Subject: [PATCH] update and sync defederation subscriptions each day - remove old --- app/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/cli.py b/app/cli.py index e64478c5..53dd132a 100644 --- a/app/cli.py +++ b/app/cli.py @@ -221,6 +221,7 @@ def register(app): db.session.commit() # update and sync defederation subscriptions + db.session.execute(text('DELETE FROM banned_instances WHERE subscription_id is not null')) for defederation_sub in DefederationSubscription.query.all(): download_defeds(defederation_sub.id, defederation_sub.domain)