From: Sadposter Date: Sat, 12 Jan 2019 14:42:52 +0000 (+0000) Subject: Honour parameters on MastoAPI /favourites X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=9daf16246121f3d5eeb4d6caeffc237cd5526546;p=akkoma Honour parameters on MastoAPI /favourites --- diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index b83539bad..a8fe9d708 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -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)