[#2301] Proper handling of User.is_discoverable: users appear in in-service search but are hidden from external services like search bots.

This commit is contained in:
Ivan Tashkinov 2020-11-19 19:30:02 +03:00
commit e164c37139
13 changed files with 16 additions and 66 deletions

View file

@ -203,6 +203,7 @@ defmodule Pleroma.Web.AdminAPI.SearchTest do
assert count == 1
end
# Note: as in Mastodon, `is_discoverable` doesn't anyhow relate to user searchability
test "it returns non-discoverable users" do
insert(:user)
insert(:user, is_discoverable: false)