Honour parameters on MastoAPI /favourites
authorSadposter <hannah+pleroma@coffee-and-dreams.uk>
Sat, 12 Jan 2019 14:42:52 +0000 (14:42 +0000)
committerSadposter <hannah+pleroma@coffee-and-dreams.uk>
Sat, 12 Jan 2019 14:42:52 +0000 (14:42 +0000)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex

index b83539bad62165a7d2a181bcd3086459db8f9052..a8fe9d7081e9c0192f0c831eb6c1b7f1df5985d0 100644 (file)
@@ -824,9 +824,9 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
     json(conn, res)
   end
 
-  def favourites(%{assigns: %{user: user}} = conn, _) do
+  def favourites(%{assigns: %{user: user}} = conn, params) do
     params =
-      %{}
+      params
       |> Map.put("type", "Create")
       |> Map.put("favorited_by", user.ap_id)
       |> Map.put("blocking_user", user)