Skip to content
Snippets Groups Projects
Commit e6286152 authored by Roger Braun's avatar Roger Braun
Browse files

Fix logic.

parent 49929321
Branches
No related tags found
No related merge requests found
......@@ -43,8 +43,8 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
def render("relationship.json", %{user: user, target: target}) do
%{
id: target.id,
following: User.following?(target, user),
followed_by: User.following?(user, target),
following: User.following?(user, target),
followed_by: User.following?(target, user),
blocking: false,
muting: false,
requested: false,
......
......@@ -49,8 +49,8 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
expected = %{
id: other_user.id,
following: false,
followed_by: true,
following: true,
followed_by: false,
blocking: false,
muting: false,
requested: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment