projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d11bae
)
actually rvert those changes
author
Francis Dinh
<normandy@firemail.cc>
Fri, 18 May 2018 03:56:47 +0000
(23:56 -0400)
committer
Francis Dinh
<normandy@firemail.cc>
Fri, 18 May 2018 03:56:47 +0000
(23:56 -0400)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index 6a8129ac84b2572432d80e2cd77d76b27cbdcd6b..399a66787dff4bf01128bd6a9492c5242aafb656 100644
(file)
--- a/
lib/pleroma/user.ex
+++ b/
lib/pleroma/user.ex
@@
-404,22
+404,18
@@
defmodule Pleroma.User do
from(
u in User,
select_merge: %{
- search_distance:
- fragment(
- "? <-> (? || ?)",
- ^query,
- u.nickname,
- u.name
- )
- }
+ search_distance: fragment(
+ "? <-> (? || ?)",
+ ^query,
+ u.nickname,
+ u.name
+ )}
)
- q =
- from(
- s in subquery(inner),
- order_by: s.search_distance,
- limit: 20
- )
+ q = from(s in subquery(inner),
+ order_by: s.search_distance,
+ limit: 20
+ )
Repo.all(q)
end