Fix wrong relationship direction
This commit is contained in:
parent
9022d855cd
commit
ea60c4e709
2 changed files with 17 additions and 2 deletions
|
|
@ -481,7 +481,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountController do
|
|||
|
||||
def remove_from_followers(%{assigns: %{user: followed, account: follower}} = conn, _params) do
|
||||
with {:ok, follower} <- CommonAPI.reject_follow_request(follower, followed) do
|
||||
render(conn, "relationship.json", user: follower, target: followed)
|
||||
render(conn, "relationship.json", user: followed, target: follower)
|
||||
else
|
||||
nil ->
|
||||
render_error(conn, :not_found, "Record not found")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue