forked from mirrors/akkoma
Order users by nickname
This commit is contained in:
parent
6d6f48d079
commit
93291c3d7a
2 changed files with 2 additions and 3 deletions
|
@ -773,7 +773,7 @@ defmodule Pleroma.User do
|
||||||
}) :: {:ok, [Pleroma.User.t()], number()}
|
}) :: {:ok, [Pleroma.User.t()], number()}
|
||||||
def search_for_admin(%{query: nil, local: local, page: page, page_size: page_size}) do
|
def search_for_admin(%{query: nil, local: local, page: page, page_size: page_size}) do
|
||||||
query =
|
query =
|
||||||
from(u in User, order_by: u.id)
|
from(u in User, order_by: u.nickname)
|
||||||
|> maybe_local_user_query(local)
|
|> maybe_local_user_query(local)
|
||||||
|
|
||||||
paginated_query =
|
paginated_query =
|
||||||
|
|
|
@ -150,8 +150,7 @@ defmodule Pleroma.UploadTest do
|
||||||
{:ok, data} = Upload.store(file)
|
{:ok, data} = Upload.store(file)
|
||||||
[attachment_url | _] = data["url"]
|
[attachment_url | _] = data["url"]
|
||||||
|
|
||||||
assert Path.basename(attachment_url["href"]) ==
|
assert Path.basename(attachment_url["href"]) == "an%E2%80%A6%20image.jpg"
|
||||||
"an%E2%80%A6%20image.jpg"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test "escapes reserved uri characters" do
|
test "escapes reserved uri characters" do
|
||||||
|
|
Loading…
Reference in a new issue