Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F21968083
feed_test.exs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
589 B
Referenced Files
None
Subscribers
None
feed_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.FeedTest
do
use
Pleroma.DataCase
import
Pleroma.Factory
alias
Pleroma.Web.Metadata.Providers.Feed
test
"it renders a link to user's atom feed"
do
user
=
insert
(
:user
,
nickname
:
"lain"
)
assert
Feed
.
build_tags
(%{
user
:
user
})
==
[
{
:link
,
[
rel
:
"alternate"
,
type
:
"application/atom+xml"
,
href
:
"/users/lain/feed.atom"
],
[]}
]
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 28, 3:24 AM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
816434
Default Alt Text
feed_test.exs (589 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment