mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-25 04:53:06 +00:00
Add rel=self link too feed.
This commit is contained in:
parent
ece85fc8bc
commit
1feb193731
|
@ -21,7 +21,8 @@ def to_simple_form(user, activities, users) do
|
|||
{:title, ['#{user.nickname}\'s timeline']},
|
||||
{:updated, h.(most_recent_update)},
|
||||
{:link, [rel: 'hub', href: h.(OStatus.pubsub_path(user))], []},
|
||||
{:author, UserRepresenter.to_simple_form(user)}
|
||||
{:link, [rel: 'self', href: h.(OStatus.feed_path(user))], []},
|
||||
{:author, UserRepresenter.to_simple_form(user)},
|
||||
] ++ entries
|
||||
}]
|
||||
end
|
||||
|
|
|
@ -27,6 +27,7 @@ test "returns a feed of the last 20 items of the user" do
|
|||
<title>#{user.nickname}'s timeline</title>
|
||||
<updated>#{most_recent_update}</updated>
|
||||
<link rel="hub" href="#{OStatus.pubsub_path(user)}" />
|
||||
<link rel="self" href="#{OStatus.feed_path(user)}" />
|
||||
<author>
|
||||
#{user_xml}
|
||||
</author>
|
||||
|
|
Loading…
Reference in a new issue