change new scrobble endpoint

This commit is contained in:
Ariadne Conill 2019-09-29 02:18:34 +00:00
commit 1d7cbdaf7b
5 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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