mastodon sync job should skip user who has not complete registration

This commit is contained in:
Her Email 2023-11-19 08:43:47 -05:00 committed by Henri Dickson
parent 5f001eedef
commit 6b4847353b

View file

@ -26,6 +26,7 @@ class MastodonUserSync(BaseJob):
mastodon_last_refresh__lt=timezone.now() - timedelta(hours=ttl_hours)
)
.filter(
username__isnull=False,
is_active=True,
)
.exclude(mastodon_token__isnull=True)