Add better test for user search functionlity.

This commit is contained in:
lain 2018-11-16 18:31:32 +01:00
commit e8d8c84f79
2 changed files with 13 additions and 1 deletions

View file

@ -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, "@")