Add type to rel=self link in feed.
authorRoger Braun <roger@rogerbraun.net>
Mon, 1 May 2017 16:40:36 +0000 (18:40 +0200)
committerRoger Braun <roger@rogerbraun.net>
Mon, 1 May 2017 16:40:36 +0000 (18:40 +0200)
lib/pleroma/web/ostatus/feed_representer.ex
test/web/ostatus/feed_representer_test.exs

index db7b685f36129cae6a34379ccbff5721abaae3fc..7f9d6a46bab1420bf9ee12bbeb1e5c729d104e48 100644 (file)
@@ -26,7 +26,7 @@ defmodule Pleroma.Web.OStatus.FeedRepresenter do
         {:updated, h.(most_recent_update)},
         {:link, [rel: 'hub', href: h.(OStatus.pubsub_path(user))], []},
         {:link, [rel: 'salmon', href: h.(OStatus.salmon_path(user))], []},
-        {:link, [rel: 'self', href: h.(OStatus.feed_path(user))], []},
+        {:link, [rel: 'self', href: h.(OStatus.feed_path(user)), type: 'application/atom+xml'], []},
         {:author, UserRepresenter.to_simple_form(user)},
       ] ++ entries
     }]
index 7bbfae49a3a62ba5cfd9c555b8ff94fae7d89051..df5a964e26b9fd7f7d2f8f030f2347a45c10fc40 100644 (file)
@@ -28,7 +28,7 @@ defmodule Pleroma.Web.OStatus.FeedRepresenterTest do
       <updated>#{most_recent_update}</updated>
       <link rel="hub" href="#{OStatus.pubsub_path(user)}" />
       <link rel="salmon" href="#{OStatus.salmon_path(user)}" />
-      <link rel="self" href="#{OStatus.feed_path(user)}" />
+      <link rel="self" href="#{OStatus.feed_path(user)}" type="application/atom+xml" />
       <author>
         #{user_xml}
       </author>