diff --git a/bgs/handlers.go b/bgs/handlers.go index d81ba7c4a..da87c9521 100644 --- a/bgs/handlers.go +++ b/bgs/handlers.go @@ -195,7 +195,7 @@ func (s *BGS) handleComAtprotoSyncNotifyOfUpdate(ctx context.Context, body *coma func (s *BGS) handleComAtprotoSyncListRepos(ctx context.Context, cursor int64, limit int) (*comatprototypes.SyncListRepos_Output, error) { // Filter out tombstoned, taken down, and deactivated accounts - q := fmt.Sprintf("id > ? AND NOT tombstoned AND NOT taken_down AND upstream_status != '%s' AND upstream_status != '%s' AND upstream_status != '%s'", + q := fmt.Sprintf("id > ? AND NOT tombstoned AND NOT taken_down AND (upstream_status is NULL OR (upstream_status != '%s' AND upstream_status != '%s' AND upstream_status != '%s'))", events.AccountStatusDeactivated, events.AccountStatusSuspended, events.AccountStatusTakendown) // Load the users