Fix follower collection id.
authorlain <lain@soykaf.club>
Sun, 25 Mar 2018 17:34:33 +0000 (19:34 +0200)
committerlain <lain@soykaf.club>
Sun, 25 Mar 2018 17:34:33 +0000 (19:34 +0200)
lib/pleroma/web/activity_pub/views/user_view.ex

index 5266dc7bec3636d7f7d0f946052ca206f05e0a89..9ff1f0c774dc421b3c1f1a77cdab9a0294058e7f 100644 (file)
@@ -86,7 +86,7 @@ defmodule Pleroma.Web.ActivityPub.UserView 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)