common api: add some missing IR bits for listen activities' children
authorAriadne Conill <ariadne@dereferenced.org>
Sat, 28 Sep 2019 12:29:00 +0000 (12:29 +0000)
committerAriadne Conill <ariadne@dereferenced.org>
Mon, 30 Sep 2019 10:39:48 +0000 (10:39 +0000)
lib/pleroma/web/common_api/common_api.ex

index b02c47059b27698a187332c3f88ae6e120642a15..2ec017ff87e1316f38ac70208babce335330059a 100644 (file)
@@ -219,7 +219,8 @@ defmodule Pleroma.Web.CommonAPI do
            Map.take(data, ["album", "artist", "title", "length"])
            |> Map.put("type", "Audio")
            |> Map.put("to", to)
-           |> Map.put("cc", cc),
+           |> Map.put("cc", cc)
+           |> Map.put("actor", user.ap_id),
          {:ok, activity} <-
            ActivityPub.listen(%{
              actor: user,