atproto polls: use common.USER_ALLOWLIST

pull/962/head
Ryan Barrett 2024-04-15 14:08:36 -07:00
rodzic e913ad1f53
commit 374af3aa5c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -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