Преглед на файлове

Add rel=self link too feed.

tags/v0.9.9
Roger Braun преди 7 години
родител
ревизия
1feb193731
променени са 2 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. +2
    -1
      lib/pleroma/web/ostatus/feed_representer.ex
  2. +1
    -0
      test/web/ostatus/feed_representer_test.exs

+ 2
- 1
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


+ 1
- 0
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>


Loading…
Отказ
Запис