Typo
authorMaxim Filippov <colixer@gmail.com>
Mon, 4 Mar 2019 23:11:15 +0000 (02:11 +0300)
committerMaxim Filippov <colixer@gmail.com>
Mon, 4 Mar 2019 23:11:15 +0000 (02:11 +0300)
docs/Admin-API.md
lib/pleroma/web/admin_api/admin_api_controller.ex

index 24944440ac61ba8e1426a5cc46b6664f991a8fa5..64e112f9bd50bf9dbb928e21c684052ccc10d9c5 100644 (file)
@@ -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:
index 12b36a1c081cb9c24d8f85a951c0ee12cee5463e..75c2c6061eb7eaaef16a51eb2546846ab42a3fe0 100644 (file)
@@ -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)