Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
6604bea9
Commit
6604bea9
authored
May 17, 2018
by
normandy
Browse files
actually rvert those changes
parent
8d11bae0
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/user.ex
View file @
6604bea9
...
...
@@ -404,22 +404,18 @@ def search(query, resolve) 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment