mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-27 03:35:05 +01:00
Honour parameters on MastoAPI /favourites
This commit is contained in:
parent
144b48da95
commit
9daf162461
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user