common api: add some missing IR bits for listen activities' children
This commit is contained in:
parent
84712c35f9
commit
8b34b221cb
|
@ -219,7 +219,8 @@ def listen(user, %{"title" => _} = data) do
|
||||||
Map.take(data, ["album", "artist", "title", "length"])
|
Map.take(data, ["album", "artist", "title", "length"])
|
||||||
|> Map.put("type", "Audio")
|
|> Map.put("type", "Audio")
|
||||||
|> Map.put("to", to)
|
|> Map.put("to", to)
|
||||||
|> Map.put("cc", cc),
|
|> Map.put("cc", cc)
|
||||||
|
|> Map.put("actor", user.ap_id),
|
||||||
{:ok, activity} <-
|
{:ok, activity} <-
|
||||||
ActivityPub.listen(%{
|
ActivityPub.listen(%{
|
||||||
actor: user,
|
actor: user,
|
||||||
|
|
Loading…
Reference in New Issue