Add optional URL value for scrobbles

This commit is contained in:
NEETzsche 2023-11-15 00:43:58 -07:00
commit 510a7b64f1
5 changed files with 16 additions and 6 deletions

View file

@ -83,7 +83,7 @@ defmodule Pleroma.Web.CommonAPI.ActivityDraft do
defp listen_object(draft) do
object =
draft.params
|> Map.take([:album, :artist, :title, :length])
|> Map.take([:album, :artist, :title, :length, :url])
|> Map.new(fn {key, value} -> {to_string(key), value} end)
|> Map.put("type", "Audio")
|> Map.put("to", draft.to)