activitypub: object view: include child object for Listen activities
This commit is contained in:
parent
71eff09e56
commit
84712c35f9
@ -15,7 +15,8 @@ def render("object.json", %{object: %Object{} = object}) do
|
|||||||
Map.merge(base, additional)
|
Map.merge(base, additional)
|
||||||
end
|
end
|
||||||
|
|
||||||
def render("object.json", %{object: %Activity{data: %{"type" => "Create"}} = activity}) do
|
def render("object.json", %{object: %Activity{data: %{"type" => activity_type}} = activity})
|
||||||
|
when activity_type in ["Create", "Listen"] do
|
||||||
base = Pleroma.Web.ActivityPub.Utils.make_json_ld_header()
|
base = Pleroma.Web.ActivityPub.Utils.make_json_ld_header()
|
||||||
object = Object.normalize(activity)
|
object = Object.normalize(activity)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user