summaryrefslogtreecommitdiff
path: root/test/web/activity_pub/activity_pub_test.exs
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/activity_pub_test.exs
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/activity_pub_test.exs')
-rw-r--r--test/web/activity_pub/activity_pub_test.exs6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs
index 90ea4662f..4bb6333c0 100644
--- a/test/web/activity_pub/activity_pub_test.exs
+++ b/test/web/activity_pub/activity_pub_test.exs
@@ -179,6 +179,12 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
assert user.follower_address == "http://mastodon.example.org/users/admin/followers"
end
+ test "it returns a user that is invisible" do
+ user_id = "http://mastodon.example.org/users/relay"
+ {:ok, user} = ActivityPub.make_user_from_ap_id(user_id)
+ assert User.invisible?(user)
+ end
+
test "it fetches the appropriate tag-restricted posts" do
user = insert(:user)