transmogrifier: when determining followers collection URI, we may need to fetch the...
authorWilliam Pitcock <nenolod@dereferenced.org>
Tue, 19 Mar 2019 18:04:57 +0000 (18:04 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Tue, 19 Mar 2019 18:04:57 +0000 (18:04 +0000)
lib/pleroma/web/activity_pub/transmogrifier.ex

index 9d536f7f5fd9bbb381cabb536267e3e3952b8d7f..4f663d01ef583edcd28d5f1156b2d3dfe7a72c47 100644 (file)
@@ -158,7 +158,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
   def fix_implicit_addressing(object, _), do: object
 
   def fix_addressing(object) do
-    %User{} = user = User.get_cached_by_ap_id(object["actor"])
+    %User{} = user = User.get_or_fetch_by_ap_id(object["actor"])
     followers_collection = User.ap_followers(user)
 
     object