mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-25 14:55:18 +01:00
Skip deactivated users in followers import
This commit is contained in:
parent
1d46944fbd
commit
8ad015ef64
@ -55,6 +55,7 @@ defmodule Pleroma.Repo.Migrations.MigrateFollowingRelationships 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