RSS: Make sure post URL is the first <link>
element
Otherwise some RSS readers (tested in Miniflux) might pick the context URL as the external link. Related to #2425.
This commit is contained in:
parent
6e68058b63
commit
ed8ef80b5e
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,6 @@
|
||||||
<ostatus:conversation ref="<%= activity_context(@activity) %>">
|
<ostatus:conversation ref="<%= activity_context(@activity) %>">
|
||||||
<%= activity_context(@activity) %>
|
<%= activity_context(@activity) %>
|
||||||
</ostatus:conversation>
|
</ostatus:conversation>
|
||||||
<link rel="ostatus:conversation"><%= activity_context(@activity) %></link>
|
|
||||||
|
|
||||||
<%= if @data["summary"] do %>
|
<%= if @data["summary"] do %>
|
||||||
<description><%= escape(@data["summary"]) %></description>
|
<description><%= escape(@data["summary"]) %></description>
|
||||||
|
@ -21,6 +20,8 @@
|
||||||
<link><%= @data["external_url"] %></link>
|
<link><%= @data["external_url"] %></link>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<link rel="ostatus:conversation"><%= activity_context(@activity) %></link>
|
||||||
|
|
||||||
<%= for tag <- @data["tag"] || [] do %>
|
<%= for tag <- @data["tag"] || [] do %>
|
||||||
<category term="<%= tag %>"></category>
|
<category term="<%= tag %>"></category>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue