Add more tests

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-01-12 21:39:14 +01:00
commit eedf551eed
7 changed files with 100 additions and 21 deletions

View file

@ -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,

View file

@ -112,7 +112,6 @@ defmodule Pleroma.Web.PleromaAPI.AccountController do
|> Pleroma.Repo.all()
conn
|> add_link_headers(users)
|> render("index.json",
for: for_user,
users: users,