Skip deactivated users in followers import
This commit is contained in:
parent
1d46944fbd
commit
8ad015ef64
@ -55,6 +55,7 @@ defp import_following_from_activities do
|
||||
WHERE
|
||||
activities.data ->> 'type' = 'Follow'
|
||||
AND activities.data ->> 'state' IN ('accept', 'pending', 'reject')
|
||||
AND NOT (followers.info ? 'deactivated' AND followers.info -> 'deactivated' @> 'true')
|
||||
ORDER BY activities.updated_at DESC
|
||||
ON CONFLICT DO NOTHING
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user