projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed8a293
)
Format
author
Maxim Filippov
<colixer@gmail.com>
Tue, 19 Mar 2019 22:40:50 +0000
(
01:40
+0300)
committer
Maxim Filippov
<colixer@gmail.com>
Tue, 19 Mar 2019 22:40:50 +0000
(
01:40
+0300)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index bf84eaf7f993a4614febce865dcdcde4eb19b231..c1aebfc29980767e4e9aa0e2c1c7fff8de26ea85 100644
(file)
--- a/
lib/pleroma/user.ex
+++ b/
lib/pleroma/user.ex
@@
-802,6
+802,7
@@
defmodule Pleroma.User do
search_query = from(u in maybe_local_query, where: ilike(u.nickname, ^"%#{term}%"))
count = search_query |> Repo.aggregate(:count, :id)
+
results =
search_query
|> paginate(page, page_size)