From: William Pitcock Date: Tue, 19 Mar 2019 18:04:57 +0000 (+0000) Subject: transmogrifier: when determining followers collection URI, we may need to fetch the... X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=cd055983c3d066c9f08aa26b62d3ec6d4419cb7c;p=akkoma transmogrifier: when determining followers collection URI, we may need to fetch the actor --- diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 9d536f7f5..4f663d01e 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -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