From: William Pitcock Date: Tue, 19 Mar 2019 18:39:33 +0000 (+0000) Subject: transmogrifier: upgrade: when upgrading OStatus users to AP, ensure we always use... X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=1685e4258f452343c86d9dd3914076f101c8ed73;p=akkoma transmogrifier: upgrade: when upgrading OStatus users to AP, ensure we always use the fake collection --- diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 4f663d01e..f733ae7e1 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -955,7 +955,8 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do defp strip_internal_tags(object), do: object defp user_upgrade_task(user) do - old_follower_address = User.ap_followers(user) + # we pass a fake user so that the followers collection is stripped away + old_follower_address = User.ap_followers(%User{nickname: user.nickname}) q = from(