mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-28 14:55:04 +01:00
Fix logic.
This commit is contained in:
parent
49929321c7
commit
e6286152b9
@ -43,8 +43,8 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
|
|||||||
def render("relationship.json", %{user: user, target: target}) do
|
def render("relationship.json", %{user: user, target: target}) do
|
||||||
%{
|
%{
|
||||||
id: target.id,
|
id: target.id,
|
||||||
following: User.following?(target, user),
|
following: User.following?(user, target),
|
||||||
followed_by: User.following?(user, target),
|
followed_by: User.following?(target, user),
|
||||||
blocking: false,
|
blocking: false,
|
||||||
muting: false,
|
muting: false,
|
||||||
requested: false,
|
requested: false,
|
||||||
|
@ -49,8 +49,8 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
|
|||||||
|
|
||||||
expected = %{
|
expected = %{
|
||||||
id: other_user.id,
|
id: other_user.id,
|
||||||
following: false,
|
following: true,
|
||||||
followed_by: true,
|
followed_by: false,
|
||||||
blocking: false,
|
blocking: false,
|
||||||
muting: false,
|
muting: false,
|
||||||
requested: false,
|
requested: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user