actually rvert those changes
This commit is contained in:
parent
8d11bae0d5
commit
6604bea9d0
1 changed files with 10 additions and 14 deletions
|
@ -404,19 +404,15 @@ defmodule Pleroma.User do
|
|||
from(
|
||||
u in User,
|
||||
select_merge: %{
|
||||
search_distance:
|
||||
fragment(
|
||||
search_distance: fragment(
|
||||
"? <-> (? || ?)",
|
||||
^query,
|
||||
u.nickname,
|
||||
u.name
|
||||
)
|
||||
}
|
||||
)}
|
||||
)
|
||||
|
||||
q =
|
||||
from(
|
||||
s in subquery(inner),
|
||||
q = from(s in subquery(inner),
|
||||
order_by: s.search_distance,
|
||||
limit: 20
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue