Add rel=self link too feed.
authorRoger Braun <roger@rogerbraun.net>
Sat, 22 Apr 2017 10:11:36 +0000 (12:11 +0200)
committerRoger Braun <roger@rogerbraun.net>
Sat, 22 Apr 2017 10:11:36 +0000 (12:11 +0200)
lib/pleroma/web/ostatus/feed_representer.ex
test/web/ostatus/feed_representer_test.exs

index 1576b47108eb0c725925d0c0bacee8e81273ba48..42be5f7937285cd0b0574a9ae282a2ae0ad427e1 100644 (file)
@@ -21,7 +21,8 @@ defmodule Pleroma.Web.OStatus.FeedRepresenter do
         {:title, ['#{user.nickname}\'s timeline']},
         {:updated, h.(most_recent_update)},
         {:link, [rel: 'hub', href: h.(OStatus.pubsub_path(user))], []},
-        {:author, UserRepresenter.to_simple_form(user)}
+        {:link, [rel: 'self', href: h.(OStatus.feed_path(user))], []},
+        {:author, UserRepresenter.to_simple_form(user)},
       ] ++ entries
     }]
   end
index 3d8eaac6e40dbed2a1f93b6173d2c012cd23405f..1b0a100303bb1181b945de0aad233168a22bd481 100644 (file)
@@ -27,6 +27,7 @@ defmodule Pleroma.Web.OStatus.FeedRepresenterTest do
       <title>#{user.nickname}'s timeline</title>
       <updated>#{most_recent_update}</updated>
       <link rel="hub" href="#{OStatus.pubsub_path(user)}" />
+      <link rel="self" href="#{OStatus.feed_path(user)}" />
       <author>
         #{user_xml}
       </author>