about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-26 01:10:18 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-26 01:10:18 +0100
commitf2da848a3ebf8f7a2407d3f33cded8d8b3f298c3 (patch)
treefb80fe77c01b5dc079bc4b5d3c7f21a51667108a /app/helpers
parent5764d52b04b04381d52896737eb2ffdfe1f87cfd (diff)
Add alternate link to entries Atom
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/atom_builder_helper.rb15
1 files changed, 8 insertions, 7 deletions
diff --git a/app/helpers/atom_builder_helper.rb b/app/helpers/atom_builder_helper.rb
index 845190795..f71f0e83e 100644
--- a/app/helpers/atom_builder_helper.rb
+++ b/app/helpers/atom_builder_helper.rb
@@ -161,13 +161,14 @@ module AtomBuilderHelper
   end
 
   def include_entry(xml, stream_entry)
-    unique_id    xml, stream_entry.created_at, stream_entry.activity_id, stream_entry.activity_type
-    published_at xml, stream_entry.created_at
-    updated_at   xml, stream_entry.updated_at
-    title        xml, stream_entry.title
-    content      xml, conditionally_formatted(stream_entry.activity)
-    verb         xml, stream_entry.verb
-    link_self    xml, account_stream_entry_url(stream_entry.account, stream_entry, format: 'atom')
+    unique_id      xml, stream_entry.created_at, stream_entry.activity_id, stream_entry.activity_type
+    published_at   xml, stream_entry.created_at
+    updated_at     xml, stream_entry.updated_at
+    title          xml, stream_entry.title
+    content        xml, conditionally_formatted(stream_entry.activity)
+    verb           xml, stream_entry.verb
+    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
     if stream_entry.threaded?