aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/mastodon_api
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2022-01-12 21:39:14 +0100
committermarcin mikołajczak <git@mkljczk.pl>2022-01-12 22:41:34 +0100
commiteedf551eedd7acb854498303259598ad7aa72b1c (patch)
tree4a3f2561c1cdbeb87522aea6ce098c519deefd26 /lib/pleroma/web/mastodon_api
parent0f90fd58052aa372aaad63d769cd724046c9f61f (diff)
downloadpleroma-eedf551eedd7acb854498303259598ad7aa72b1c.tar.gz
Add more tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'lib/pleroma/web/mastodon_api')
-rw-r--r--lib/pleroma/web/mastodon_api/controllers/account_controller.ex3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pleroma/web/mastodon_api/controllers/account_controller.ex b/lib/pleroma/web/mastodon_api/controllers/account_controller.ex
index 0c0548828..a90833bf0 100644
--- a/lib/pleroma/web/mastodon_api/controllers/account_controller.ex
+++ b/lib/pleroma/web/mastodon_api/controllers/account_controller.ex
@@ -529,10 +529,9 @@ defmodule Pleroma.Web.MastodonAPI.AccountController do
users =
user
|> User.endorsed_users_relation(_restrict_deactivated = true)
- |> Pleroma.Pagination.fetch_paginated(Map.put(params, :skip_order, true))
+ |> Pleroma.Repo.all()
conn
- |> add_link_headers(users)
|> render("index.json",
users: users,
for: user,