forked from e621ng/e621ng
[Posts] Fix atom feed newline in link href error (#767)
This commit is contained in:
parent
7866c700fa
commit
50757a1e3b
@ -15,7 +15,9 @@
|
||||
<title><%= post.presenter.humanized_essential_tag_string %></title>
|
||||
<link href="<%= post_url(post) %>" rel="alternate"/>
|
||||
<% if post.source =~ %r{\Ahttps?://} %>
|
||||
<link href="<%= post.source %>" rel="related"/>
|
||||
<% post.source.split("\n").each do |source| %>
|
||||
<link href="<%= source %>" rel="related"/>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<id><%= post_url(post) %></id>
|
||||
<updated><%= post.created_at.gmtime.xmlschema %></updated>
|
||||
|
Loading…
Reference in New Issue
Block a user