diff options
author | lain <lain@soykaf.club> | 2018-11-16 18:31:32 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-11-16 18:31:32 +0100 |
commit | e8d8c84f795152a0522e6848e75b47dcbce5aa89 (patch) | |
tree | d052191274c9f2966f669c04baa5b1e04031becf /lib | |
parent | 27aa136aacb43084089234df59649bc81e53d63c (diff) | |
download | pleroma-e8d8c84f795152a0522e6848e75b47dcbce5aa89.tar.gz |
Add better test for user search functionlity.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/user.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index be634a8e1..6e1d5559d 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -498,7 +498,7 @@ defmodule Pleroma.User do Repo.all(query) end - def search(query, resolve) do + def search(query, resolve \\ false) do # strip the beginning @ off if there is a query query = String.trim_leading(query, "@") |