aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFrancis Dinh <normandy@firemail.cc>2018-05-17 23:56:47 -0400
committerFrancis Dinh <normandy@firemail.cc>2018-05-17 23:56:47 -0400
commit6604bea9d03c2a0eb48cd08d95de88a31656e181 (patch)
tree8b04e7186198535d95ef5eeca8ea29b4cb1b0aaf /lib
parent8d11bae0d5e649f9dc0570b24ee5c4c74b8b463f (diff)
downloadpleroma-6604bea9d03c2a0eb48cd08d95de88a31656e181.tar.gz
actually rvert those changes
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/user.ex24
1 files changed, 10 insertions, 14 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex
index 6a8129ac8..399a66787 100644
--- 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