change new scrobble endpoint
This commit is contained in:
parent
211008ae2f
commit
1d7cbdaf7b
5 changed files with 7 additions and 7 deletions
|
|
@ -12,7 +12,7 @@ defmodule Pleroma.Web.PleromaAPI.ScrobbleController do
|
|||
alias Pleroma.Web.CommonAPI
|
||||
alias Pleroma.Web.MastodonAPI.StatusView
|
||||
|
||||
def update_now_playing(%{assigns: %{user: user}} = conn, %{"title" => _} = params) do
|
||||
def new_scrobble(%{assigns: %{user: user}} = conn, %{"title" => _} = params) do
|
||||
params =
|
||||
if !params["length"] do
|
||||
params
|
||||
|
|
|
|||
|
|
@ -303,7 +303,7 @@ defmodule Pleroma.Web.Router do
|
|||
|
||||
scope [] do
|
||||
pipe_through(:oauth_write)
|
||||
post("/now-playing", ScrobbleController, :update_now_playing)
|
||||
post("/scrobble", ScrobbleController, :new_scrobble)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue