From: Francis Dinh Date: Fri, 18 May 2018 03:56:47 +0000 (-0400) Subject: actually rvert those changes X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=6604bea9d03c2a0eb48cd08d95de88a31656e181;p=akkoma actually rvert those changes --- 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