1
0
Fork 0
forked from mirrors/akkoma

Honour parameters on MastoAPI /favourites

This commit is contained in:
Sadposter 2019-01-12 14:42:52 +00:00
parent 144b48da95
commit 9daf162461

View file

@ -824,9 +824,9 @@ def account_search(%{assigns: %{user: user}} = conn, %{"q" => query} = params) d
json(conn, res) json(conn, res)
end end
def favourites(%{assigns: %{user: user}} = conn, _) do def favourites(%{assigns: %{user: user}} = conn, params) do
params = params =
%{} params
|> Map.put("type", "Create") |> Map.put("type", "Create")
|> Map.put("favorited_by", user.ap_id) |> Map.put("favorited_by", user.ap_id)
|> Map.put("blocking_user", user) |> Map.put("blocking_user", user)