Merge branch 'admin-api-users-sort' into 'develop'
AdminAPI: sort new users at the top Closes #2709 See merge request pleroma/pleroma!3481
This commit is contained in:
commit
3f58213646
4 changed files with 59 additions and 71 deletions
|
|
@ -17,7 +17,7 @@ defmodule Pleroma.Web.AdminAPI.Search do
|
|||
|> Map.drop([:page, :page_size])
|
||||
|> Map.put(:invisible, false)
|
||||
|> User.Query.build()
|
||||
|> order_by([u], u.nickname)
|
||||
|> order_by(desc: :id)
|
||||
|
||||
paginated_query =
|
||||
User.Query.paginate(query, params[:page] || 1, params[:page_size] || @page_size)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue