]> cat aescling's git repositories - mastodon.git/commitdiff
Add alternate link to entries Atom
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 26 Mar 2016 00:10:18 +0000 (01:10 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 26 Mar 2016 00:10:18 +0000 (01:10 +0100)
app/assets/stylesheets/dashboard.scss
app/helpers/atom_builder_helper.rb

index 8d451e1740f6e6a1f96fd2009010e99c23d16a4b..983172bd0d7e2dddbb27a50e97105f78c736cba9 100644 (file)
@@ -55,6 +55,7 @@
     a {
       text-decoration: none;
       color: inherit;
+      outline: 0;
     }
 
     .dashboard__current-user__avatar {
index 84519079578e8824b85dcbf4f4d0df346cf755ca..f71f0e83ebdc758019a8437334be9f47d9942236 100644 (file)
@@ -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?