Add alternate link to entries Atom

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
Eugen Rochko 2016-03-26 01:10:18 +01:00
parent 5764d52b04
commit f2da848a3e
2 changed files with 9 additions and 7 deletions

View File

@ -55,6 +55,7 @@
a { a {
text-decoration: none; text-decoration: none;
color: inherit; color: inherit;
outline: 0;
} }
.dashboard__current-user__avatar { .dashboard__current-user__avatar {

View File

@ -161,13 +161,14 @@ module AtomBuilderHelper
end end
def include_entry(xml, stream_entry) def include_entry(xml, stream_entry)
unique_id xml, stream_entry.created_at, stream_entry.activity_id, stream_entry.activity_type unique_id xml, stream_entry.created_at, stream_entry.activity_id, stream_entry.activity_type
published_at xml, stream_entry.created_at published_at xml, stream_entry.created_at
updated_at xml, stream_entry.updated_at updated_at xml, stream_entry.updated_at
title xml, stream_entry.title title xml, stream_entry.title
content xml, conditionally_formatted(stream_entry.activity) content xml, conditionally_formatted(stream_entry.activity)
verb xml, stream_entry.verb verb xml, stream_entry.verb
link_self xml, account_stream_entry_url(stream_entry.account, stream_entry, format: 'atom') link_self xml, account_stream_entry_url(stream_entry.account, stream_entry, format: 'atom')
link_alternate xml, account_stream_entry_url(stream_entry.account, stream_entry)
# Comments need thread element # Comments need thread element
if stream_entry.threaded? if stream_entry.threaded?