[Pleroma.Web.MastodonAPI.AccountView]: relationship.json: fake endorsed value (false)
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Thu, 20 Sep 2018 14:22:31 +0000 (16:22 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Thu, 20 Sep 2018 14:24:29 +0000 (16:24 +0200)
lib/pleroma/web/mastodon_api/views/account_view.ex
test/web/mastodon_api/account_view_test.exs

index 7c92c991f1f637a1e06a70ff9b4ad14cf99e6578..3c8f93486339711213246f3d3587601424e24c67 100644 (file)
@@ -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
 
index e1e07fbcdcfd10f3828b876e2c83722cb764bd22..dc52b92bca4465d8556ab94dc12f70e634086286 100644 (file)
@@ -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})