Skip to content
Snippets Groups Projects
Commit d7c2909c authored by lain's avatar lain
Browse files

Merge branch 'bugfix/user-search-with-at-sign' into 'develop'

user: strip leading @ from user query when searching for users if present

Closes #117

See merge request !99
parents 210755ac 2edde060
No related branches found
No related tags found
No related merge requests found
......@@ -375,6 +375,9 @@ defmodule Pleroma.User do
end
def search(query, resolve) do
# strip the beginning @ off if there is a query
query = String.trim_leading(query, "@")
if resolve do
User.get_or_fetch_by_nickname(query)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment