mastodon sync job should skip user who has not complete registration
This commit is contained in:
parent
5f001eedef
commit
6b4847353b
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue