summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Filippov <colixer@gmail.com>2019-03-05 02:11:15 +0300
committerMaxim Filippov <colixer@gmail.com>2019-03-05 02:11:15 +0300
commit2d30fc279f2a3a5af68918c32c474a2fe8eaf664 (patch)
tree192a918a5f39ef57e86b8d5fbd5483de69e086c9
parent02359d686ca5f7feb1b83d77a35118bd55efdb52 (diff)
downloadpleroma-2d30fc279f2a3a5af68918c32c474a2fe8eaf664.tar.gz
pleroma-2d30fc279f2a3a5af68918c32c474a2fe8eaf664.zip
Typo
-rw-r--r--docs/Admin-API.md2
-rw-r--r--lib/pleroma/web/admin_api/admin_api_controller.ex15
2 files changed, 1 insertions, 16 deletions
diff --git a/docs/Admin-API.md b/docs/Admin-API.md
index 24944440a..64e112f9b 100644
--- a/docs/Admin-API.md
+++ b/docs/Admin-API.md
@@ -9,7 +9,7 @@ Authentication is required and the user must be an admin.
- Method `GET`
- Params:
- `query`: **string** *optional* search term
- - `only_local`: **bool** *optional* whether to return only local users
+ - `local_only`: **bool** *optional* whether to return only local users
- `page`: **integer** *optional* page number
- `page_size`: **integer** *optional* number of users per page (default is `50`)
- Response:
diff --git a/lib/pleroma/web/admin_api/admin_api_controller.ex b/lib/pleroma/web/admin_api/admin_api_controller.ex
index 12b36a1c0..75c2c6061 100644
--- a/lib/pleroma/web/admin_api/admin_api_controller.ex
+++ b/lib/pleroma/web/admin_api/admin_api_controller.ex
@@ -63,21 +63,6 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
do: json_response(conn, :no_content, "")
end
- # def list_users(conn, params) do
- # {page, page_size} = page_params(params)
-
- # with {:ok, users, count} <- User.all_for_admin(page, page_size),
- # do:
- # conn
- # |> json(
- # AccountView.render("index.json",
- # users: users,
- # count: count,
- # page_size: page_size
- # )
- # )
- # end
-
def list_users(%{assigns: %{user: admin}} = conn, params) do
{page, page_size} = page_params(params)