From: Ariadne Conill Date: Sat, 28 Sep 2019 12:28:39 +0000 (+0000) Subject: activitypub: object view: include child object for Listen activities X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=84712c35f9b316b0891edfa791aeb5e358613bd2;p=akkoma activitypub: object view: include child object for Listen activities --- diff --git a/lib/pleroma/web/activity_pub/views/object_view.ex b/lib/pleroma/web/activity_pub/views/object_view.ex index 0d63f0707..88c55acdd 100644 --- a/lib/pleroma/web/activity_pub/views/object_view.ex +++ b/lib/pleroma/web/activity_pub/views/object_view.ex @@ -15,7 +15,8 @@ defmodule Pleroma.Web.ActivityPub.ObjectView do Map.merge(base, additional) 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() object = Object.normalize(activity)