Commit d06f47e1 authored by Gergely Ujvari's avatar Gergely Ujvari

Introduce pattern capture filter for user field.

This way we can search both for the username and the full user format.

Fix #1456
parent 90cda6c4
......@@ -164,13 +164,8 @@ class SearchFilter
class QueryParser
rules:
user:
formatter: (user) ->
if user.indexOf('acct:') != 0
'acct:' + user + '@' + window.location.hostname
else
user
path: '/user'
exact_match: true
exact_match: false
case_sensitive: false
and_or: 'or'
text:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment