aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2018-09-20 16:22:31 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2018-09-20 16:24:29 +0200
commita8eaecadee1807af89e2917f4c1981e7981ad908 (patch)
tree65a3085e71a9c80b94b0bdab12ae8f5fd1b97c23
parent43d0b7bf7ae0e44366a56a6e0b9172b0caedd14a (diff)
downloadpleroma-a8eaecadee1807af89e2917f4c1981e7981ad908.tar.gz
[Pleroma.Web.MastodonAPI.AccountView]: relationship.json: fake endorsed value (false)
-rw-r--r--lib/pleroma/web/mastodon_api/views/account_view.ex3
-rw-r--r--test/web/mastodon_api/account_view_test.exs3
2 files changed, 4 insertions, 2 deletions
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})