Merge branch 'scrobbles' into 'develop'

Change ScrobbleView external link param name to use snake case

See merge request pleroma/pleroma!4243
This commit is contained in:
vaartis 2025-06-18 10:25:38 +00:00
commit cda7cbf2a1
7 changed files with 48 additions and 12 deletions

View file

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