summaryrefslogtreecommitdiff
path: root/test/web/activity_pub/views
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2019-10-21 11:05:09 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2019-10-21 11:05:09 +0300
commita11a7176d59deafa08a865d6e0950b9b9c540f18 (patch)
tree9a5004f4de7bfa4bf515adaddab65e290d8e38e7 /test/web/activity_pub/views
parent75da202ab74489af15e086f06810e22211d52d33 (diff)
parent2ebe8c416a72b512feaba87040982da5bcf865cf (diff)
downloadpleroma-a11a7176d59deafa08a865d6e0950b9b9c540f18.tar.gz
pleroma-a11a7176d59deafa08a865d6e0950b9b9c540f18.zip
Merge remote-tracking branch 'remotes/upstream/develop' into 1304-user-info-deprecation
# Conflicts: # lib/pleroma/user/info.ex # lib/pleroma/web/activity_pub/activity_pub.ex # lib/pleroma/web/activity_pub/transmogrifier.ex
Diffstat (limited to 'test/web/activity_pub/views')
-rw-r--r--test/web/activity_pub/views/user_view_test.exs6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/web/activity_pub/views/user_view_test.exs b/test/web/activity_pub/views/user_view_test.exs
index 42918cf2f..392b717b1 100644
--- a/test/web/activity_pub/views/user_view_test.exs
+++ b/test/web/activity_pub/views/user_view_test.exs
@@ -74,6 +74,12 @@ defmodule Pleroma.Web.ActivityPub.UserViewTest do
assert result["image"]["url"] == "https://somebanner"
end
+ test "renders an invisible user with the invisible property set to true" do
+ user = insert(:user, %{info: %{invisible: true}})
+
+ assert %{"invisible" => true} = UserView.render("service.json", %{user: user})
+ end
+
describe "endpoints" do
test "local users have a usable endpoints structure" do
user = insert(:user)