transmogrifier: upgrade: when upgrading OStatus users to AP, ensure we always use the fake collection

This commit is contained in:
William Pitcock 2019-03-19 18:39:33 +00:00
parent 67ff8d9311
commit 1685e4258f

View file

@ -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(