transmogrifier: upgrade: when upgrading OStatus users to AP, ensure we always use...
authorWilliam Pitcock <nenolod@dereferenced.org>
Tue, 19 Mar 2019 18:39:33 +0000 (18:39 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Tue, 19 Mar 2019 18:39:33 +0000 (18:39 +0000)
lib/pleroma/web/activity_pub/transmogrifier.ex

index 4f663d01ef583edcd28d5f1156b2d3dfe7a72c47..f733ae7e1df2789ee2981c2a4963d2ce8572f2d7 100644 (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(