test: activitypub: use User.invisible?/1 for testing invisibility
This commit is contained in:
parent
ef659331b0
commit
80d3912a56
@ -182,7 +182,7 @@ test "it returns a user" do
|
|||||||
test "it returns a user that is invisible" do
|
test "it returns a user that is invisible" do
|
||||||
user_id = "http://mastodon.example.org/users/relay"
|
user_id = "http://mastodon.example.org/users/relay"
|
||||||
{:ok, user} = ActivityPub.make_user_from_ap_id(user_id)
|
{:ok, user} = ActivityPub.make_user_from_ap_id(user_id)
|
||||||
assert user.info.invisible
|
assert User.invisible?(user)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "it fetches the appropriate tag-restricted posts" do
|
test "it fetches the appropriate tag-restricted posts" do
|
||||||
|
Loading…
Reference in New Issue
Block a user