Add type to rel=self link in feed.
This commit is contained in:
parent
e88062494e
commit
ceb2f68432
@ -26,7 +26,7 @@ defmodule Pleroma.Web.OStatus.FeedRepresenter do
|
|||||||
{:updated, h.(most_recent_update)},
|
{:updated, h.(most_recent_update)},
|
||||||
{:link, [rel: 'hub', href: h.(OStatus.pubsub_path(user))], []},
|
{:link, [rel: 'hub', href: h.(OStatus.pubsub_path(user))], []},
|
||||||
{:link, [rel: 'salmon', href: h.(OStatus.salmon_path(user))], []},
|
{:link, [rel: 'salmon', href: h.(OStatus.salmon_path(user))], []},
|
||||||
{:link, [rel: 'self', href: h.(OStatus.feed_path(user))], []},
|
{:link, [rel: 'self', href: h.(OStatus.feed_path(user)), type: 'application/atom+xml'], []},
|
||||||
{:author, UserRepresenter.to_simple_form(user)},
|
{:author, UserRepresenter.to_simple_form(user)},
|
||||||
] ++ entries
|
] ++ entries
|
||||||
}]
|
}]
|
||||||
|
@ -28,7 +28,7 @@ defmodule Pleroma.Web.OStatus.FeedRepresenterTest do
|
|||||||
<updated>#{most_recent_update}</updated>
|
<updated>#{most_recent_update}</updated>
|
||||||
<link rel="hub" href="#{OStatus.pubsub_path(user)}" />
|
<link rel="hub" href="#{OStatus.pubsub_path(user)}" />
|
||||||
<link rel="salmon" href="#{OStatus.salmon_path(user)}" />
|
<link rel="salmon" href="#{OStatus.salmon_path(user)}" />
|
||||||
<link rel="self" href="#{OStatus.feed_path(user)}" />
|
<link rel="self" href="#{OStatus.feed_path(user)}" type="application/atom+xml" />
|
||||||
<author>
|
<author>
|
||||||
#{user_xml}
|
#{user_xml}
|
||||||
</author>
|
</author>
|
||||||
|
Loading…
Reference in New Issue
Block a user