From: cascode Date: Fri, 4 Jan 2019 09:35:26 +0000 (-0800) Subject: handle null X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5b23dfa1c5e6a3ec30fc6dc32761f27968eabf2f;p=akkoma handle null --- diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 1edded415..0e5e2d943 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -610,7 +610,7 @@ defmodule Pleroma.User do select_merge: %{ search_distance: fragment( - "? <-> (? || ?)", + "? <-> (? || coalesce(?, ''))", ^query, u.nickname, u.name