From: Haelwenn (lanodan) Monnier Date: Thu, 20 Sep 2018 14:22:31 +0000 (+0200) Subject: [Pleroma.Web.MastodonAPI.AccountView]: relationship.json: fake endorsed value (false) X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=a8eaecadee1807af89e2917f4c1981e7981ad908;p=akkoma [Pleroma.Web.MastodonAPI.AccountView]: relationship.json: fake endorsed value (false) --- diff --git a/lib/pleroma/web/mastodon_api/views/account_view.ex b/lib/pleroma/web/mastodon_api/views/account_view.ex index 7c92c991f..3c8f93486 100644 --- a/lib/pleroma/web/mastodon_api/views/account_view.ex +++ b/lib/pleroma/web/mastodon_api/views/account_view.ex @@ -79,7 +79,8 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do muting_notifications: false, requested: false, domain_blocking: false, - showing_reblogs: false + showing_reblogs: false, + endorsed: false } end diff --git a/test/web/mastodon_api/account_view_test.exs b/test/web/mastodon_api/account_view_test.exs index e1e07fbcd..dc52b92bc 100644 --- a/test/web/mastodon_api/account_view_test.exs +++ b/test/web/mastodon_api/account_view_test.exs @@ -126,7 +126,8 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do muting_notifications: false, requested: false, domain_blocking: false, - showing_reblogs: false + showing_reblogs: false, + endorsed: false } assert expected == AccountView.render("relationship.json", %{user: user, target: other_user})