X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fsearch%2Fbuiltin.ex;h=3cbe2207ac5c6bdd2949a8af672f919a532649f8;hb=0cf365490781fc7d77b43e69bb7de90bb3d1c044;hp=019713f5274991fbcf1bed4d42f8e62da4e3ba51;hpb=fdeef7d4df2c70245941d2051e02529c13f3b505;p=akkoma diff --git a/lib/pleroma/search/builtin.ex b/lib/pleroma/search/builtin.ex index 019713f52..3cbe2207a 100644 --- a/lib/pleroma/search/builtin.ex +++ b/lib/pleroma/search/builtin.ex @@ -14,6 +14,7 @@ defmodule Pleroma.Search.Builtin do def search(_conn, %{q: query} = params, options) do version = Keyword.get(options, :version) timeout = Keyword.get(Repo.config(), :timeout, 15_000) + query = String.trim(query) default_values = %{"statuses" => [], "accounts" => [], "hashtags" => []} default_values