summaryrefslogtreecommitdiff
path: root/test/web/metadata/restrict_indexing_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2020-09-18 07:08:37 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2020-09-18 07:08:37 +0300
commit2ec0dcf00194544449a5d7768ab10777b294895b (patch)
tree1c2f097403f48e6f43894ac792ce77dc5992b32d /test/web/metadata/restrict_indexing_test.exs
parent5a8ea0a5b07c22d567a60af36345483fe880b638 (diff)
parent49584a9928f02b461a0356332440084473ea6b69 (diff)
downloadpleroma-2ec0dcf00194544449a5d7768ab10777b294895b.tar.gz
pleroma-2ec0dcf00194544449a5d7768ab10777b294895b.zip
Merge branch 'develop' into issue/2099
Diffstat (limited to 'test/web/metadata/restrict_indexing_test.exs')
-rw-r--r--test/web/metadata/restrict_indexing_test.exs8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/web/metadata/restrict_indexing_test.exs b/test/web/metadata/restrict_indexing_test.exs
index aad0bac42..6b3a65372 100644
--- a/test/web/metadata/restrict_indexing_test.exs
+++ b/test/web/metadata/restrict_indexing_test.exs
@@ -14,8 +14,14 @@ defmodule Pleroma.Web.Metadata.Providers.RestrictIndexingTest do
test "for local user" do
assert Pleroma.Web.Metadata.Providers.RestrictIndexing.build_tags(%{
- user: %Pleroma.User{local: true}
+ user: %Pleroma.User{local: true, discoverable: true}
}) == []
end
+
+ test "for local user when discoverable is false" do
+ assert Pleroma.Web.Metadata.Providers.RestrictIndexing.build_tags(%{
+ user: %Pleroma.User{local: true, discoverable: false}
+ }) == [{:meta, [name: "robots", content: "noindex, noarchive"], []}]
+ end
end
end