summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-05-09 18:51:20 +0300
committerrinpatch <rinpatch@sdf.org>2020-05-09 22:07:35 +0300
commit0ad89762a1cfdbb953a12e0434153a5e577f183a (patch)
tree79f917be3ba27de80e752db6ec3f6fdb8802f0ff /priv
parentd73e8b6b1262d12ec27c4478ce9ec5cad76d9ebb (diff)
downloadpleroma-0ad89762a1cfdbb953a12e0434153a5e577f183a.tar.gz
pleroma-0ad89762a1cfdbb953a12e0434153a5e577f183a.zip
insert skeletons migration: fix for non-local locals
Apparently some instances have local users with local ap_ids that are marked as local: false. Needs more investigation into how that happened. In the meantime, the skeleton migration was patched to just ignore all known ap ids, not just locals. Doesn't seem to slow down the migration too much on patch.cx Closes #1746
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20200428221338_insert_skeletons_for_deleted_users.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/priv/repo/migrations/20200428221338_insert_skeletons_for_deleted_users.exs b/priv/repo/migrations/20200428221338_insert_skeletons_for_deleted_users.exs
index 11d9a70ba..2adc38186 100644
--- a/priv/repo/migrations/20200428221338_insert_skeletons_for_deleted_users.exs
+++ b/priv/repo/migrations/20200428221338_insert_skeletons_for_deleted_users.exs
@@ -30,7 +30,7 @@ defmodule Pleroma.Repo.Migrations.InsertSkeletonsForDeletedUsers do
Repo,
"select distinct unnest(nonexistent_locals.recipients) from activities, lateral (select array_agg(recipient) as recipients from unnest(activities.recipients) as recipient where recipient similar to '#{
instance_uri
- }/users/[A-Za-z0-9]*' and not(recipient in (select ap_id from users where local = true))) nonexistent_locals;",
+ }/users/[A-Za-z0-9]*' and not(recipient in (select ap_id from users))) nonexistent_locals;",
[],
timeout: :infinity
)