mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
update and sync defederation subscriptions each day - remove old
This commit is contained in:
parent
4d18627f0e
commit
6f53afd4b9
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue