summaryrefslogtreecommitdiff
path: root/test/web
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2019-10-05 20:41:33 +0000
committerAriadne Conill <ariadne@dereferenced.org>2019-10-19 23:21:37 +0000
commitef659331b03925c41cd3e557bd39cb2d73dd6aa1 (patch)
treeb1f0e5fea52a6e1ccf817c0d85b1b6839cdeed74 /test/web
parent95871cb4628933900f2004a8bece1b929d5525bf (diff)
downloadpleroma-ef659331b03925c41cd3e557bd39cb2d73dd6aa1.tar.gz
pleroma-ef659331b03925c41cd3e557bd39cb2d73dd6aa1.zip
implement invisible support for remote users
Diffstat (limited to 'test/web')
-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 28a9b773c..b87050a4a 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.info.invisible
+ end
+
test "it fetches the appropriate tag-restricted posts" do
user = insert(:user)