aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadposter <hannah+pleroma@coffee-and-dreams.uk>2019-01-12 14:42:52 +0000
committerSadposter <hannah+pleroma@coffee-and-dreams.uk>2019-01-12 14:42:52 +0000
commit9daf16246121f3d5eeb4d6caeffc237cd5526546 (patch)
tree14039d30eb475c6b4870848b5fcd8772d9b245f0
parent144b48da95867b33315c6a0e6e865c457d89452b (diff)
downloadpleroma-9daf16246121f3d5eeb4d6caeffc237cd5526546.tar.gz
Honour parameters on MastoAPI /favourites
-rw-r--r--lib/pleroma/web/mastodon_api/mastodon_api_controller.ex4
1 files changed, 2 insertions, 2 deletions
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)