Commit bddec2f6 authored by Randall Leeds's avatar Randall Leeds

Allow specifying the domain of a user search facet

parent 40444ca7
...@@ -165,7 +165,10 @@ class QueryParser ...@@ -165,7 +165,10 @@ class QueryParser
rules: rules:
user: user:
formatter: (user) -> formatter: (user) ->
'acct:' + user + '@' + window.location.hostname if user.indexOf('acct:') != 0
'acct:' + user + '@' + window.location.hostname
else
user
path: '/user' path: '/user'
exact_match: true exact_match: true
case_sensitive: false case_sensitive: false
......
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