mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-22 22:49:25 +00: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 a new issue