Add better test for user search functionlity.
This commit is contained in:
parent
27aa136aac
commit
e8d8c84f79
2 changed files with 13 additions and 1 deletions
|
|
@ -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, "@")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue