Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F21908019
restrict_indexing_test.exs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
722 B
Referenced Files
None
Subscribers
None
restrict_indexing_test.exs
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.Web.Metadata.Providers.RestrictIndexingTest
do
use
ExUnit.Case
,
async
:
true
describe
"build_tags/1"
do
test
"for remote user"
do
assert
Pleroma.Web.Metadata.Providers.RestrictIndexing
.
build_tags
(%{
user
:
%
Pleroma.User
{
local
:
false
}
})
==
[{
:meta
,
[
name
:
"robots"
,
content
:
"noindex, noarchive"
],
[]}]
end
test
"for local user"
do
assert
Pleroma.Web.Metadata.Providers.RestrictIndexing
.
build_tags
(%{
user
:
%
Pleroma.User
{
local
:
true
}
})
==
[]
end
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 28, 1:42 AM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
839898
Default Alt Text
restrict_indexing_test.exs (722 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment