Fix wrong relationship direction

This commit is contained in:
Tusooa Zhu 2022-09-14 20:24:04 -04:00
commit ea60c4e709
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
2 changed files with 17 additions and 2 deletions

View file

@ -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")