From 2d30fc279f2a3a5af68918c32c474a2fe8eaf664 Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Tue, 5 Mar 2019 02:11:15 +0300 Subject: [PATCH] Typo --- docs/Admin-API.md | 2 +- lib/pleroma/web/admin_api/admin_api_controller.ex | 15 --------------- 2 files changed, 1 insertion(+), 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)