transmogrifier: when determining followers collection URI, we may need to fetch the actor

This commit is contained in:
William Pitcock 2019-03-19 18:04:57 +00:00
parent 455bb526f6
commit cd055983c3

View File

@ -158,7 +158,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
def fix_implicit_addressing(object, _), do: object def fix_implicit_addressing(object, _), do: object
def fix_addressing(object) do 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) followers_collection = User.ap_followers(user)
object object