Commit a488bc57 authored by Randall Leeds's avatar Randall Leeds

Simplify user page search

parent 6290d3d7
...@@ -433,11 +433,8 @@ class ViewFilter ...@@ -433,11 +433,8 @@ class ViewFilter
match: (term, value) -> return value is term match: (term, value) -> return value is term
user: user:
autofalse: (annotation) -> return not annotation.user? autofalse: (annotation) -> return not annotation.user?
value: (annotation) -> value: (annotation) -> return annotation.user
# XXX: Hopefully there is a cleaner solution match: (term, value) -> return value.indexOf(term) > -1
# XXX: To reach persona filter from here
return (annotation.user?.match /^acct:([^@]+)@(.+)/)?[1]
match: (term, value) -> return value is term
any: any:
fields: ['quote', 'text', 'tag', 'user'] fields: ['quote', 'text', 'tag', 'user']
......
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