diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-04-22 12:11:36 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-04-22 12:11:36 +0200 |
commit | 1feb193731881f87efda0dd3c08d554d2ef22971 (patch) | |
tree | b179b137bed75c36614d1c394081de1637978899 | |
parent | ece85fc8bc18a67079179922cf728786c1c444e6 (diff) | |
download | pleroma-1feb193731881f87efda0dd3c08d554d2ef22971.tar.gz pleroma-1feb193731881f87efda0dd3c08d554d2ef22971.zip |
Add rel=self link too feed.
-rw-r--r-- | lib/pleroma/web/ostatus/feed_representer.ex | 3 | ||||
-rw-r--r-- | test/web/ostatus/feed_representer_test.exs | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/pleroma/web/ostatus/feed_representer.ex b/lib/pleroma/web/ostatus/feed_representer.ex index 1576b4710..42be5f793 100644 --- a/lib/pleroma/web/ostatus/feed_representer.ex +++ b/lib/pleroma/web/ostatus/feed_representer.ex @@ -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 diff --git a/test/web/ostatus/feed_representer_test.exs b/test/web/ostatus/feed_representer_test.exs index 3d8eaac6e..1b0a10030 100644 --- a/test/web/ostatus/feed_representer_test.exs +++ b/test/web/ostatus/feed_representer_test.exs @@ -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> |