[#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:
parent
fcad3e716a
commit
e164c37139
13 changed files with 16 additions and 66 deletions
|
|
@ -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"], []}]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue