Commit 9daf1624 authored by Sadposter's avatar Sadposter
Browse files

Honour parameters on MastoAPI /favourites

parent 144b48da
......@@ -824,9 +824,9 @@ def account_search(%{assigns: %{user: user}} = conn, %{"q" => query} = params) d
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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment