[#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

@ -18,7 +18,7 @@ defmodule Pleroma.Web.Metadata.Providers.RestrictIndexingTest do
}) == []
end
test "for local user when discoverable is false" do
test "for local user when `is_discoverable` is false" do
assert Pleroma.Web.Metadata.Providers.RestrictIndexing.build_tags(%{
user: %Pleroma.User{local: true, is_discoverable: false}
}) == [{:meta, [name: "robots", content: "noindex, noarchive"], []}]