Fix follower collection id.

This commit is contained in:
lain 2018-03-25 19:34:33 +02:00
parent 09de76ad5a
commit 2c1c221301

View file

@ -86,7 +86,7 @@ def render("followers.json", %{user: user, page: page}) do
def render("followers.json", %{user: user}) do
{:ok, followers} = User.get_followers(user)
%{
"id" => "#{user.ap_id}/following",
"id" => "#{user.ap_id}/followers",
"type" => "OrderedCollection",
"totalItems" => length(followers),
"first" => collection(followers, "#{user.ap_id}/followers", 1)