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:
commit
cda7cbf2a1
7 changed files with 48 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue