From 374af3aa5c9ca1842bcd2a0b91daf33abad158e9 Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Mon, 15 Apr 2024 14:08:36 -0700 Subject: [PATCH] atproto polls: use common.USER_ALLOWLIST --- atproto.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/atproto.py b/atproto.py index fe81739..f317a15 100644 --- a/atproto.py +++ b/atproto.py @@ -34,6 +34,7 @@ from common import ( DOMAINS, error, USER_AGENT, + USER_ALLOWLIST, ) import flask_app from models import Object, PROTOCOLS, Target, User @@ -575,7 +576,7 @@ def poll_notifications(): for user in users: # TODO: remove for launch - if not DEBUG and user.key.id() not in ['indieweb.org', 'snarfed.org']: + if not DEBUG and user.key.id() not in USER_ALLOWLIST: logger.info(f'Skipping {user.key.id()}') continue @@ -635,7 +636,7 @@ def poll_posts(): for user in users: # TODO: remove for launch - if not DEBUG and user.key.id() not in ['indieweb.org', 'snarfed.org']: + if not DEBUG and user.key.id() not in USER_ALLOWLIST: logger.info(f'Skipping {user.key.id()}') continue