Commit 86ab9a97 authored by Ujvari Gergely's avatar Ujvari Gergely

Fix tags search for page search

Had inconsistencies with tag and tags.
Unwanted console.log was also removed

Fixes #1267
parent 3b4fe339
...@@ -253,7 +253,7 @@ class App ...@@ -253,7 +253,7 @@ class App
switch switch
when category in ['text', 'user', 'time', 'group'] when category in ['text', 'user', 'time', 'group']
query[category] = value query[category] = value
when category == 'tag' when category == 'tags'
# Tags are specials, because we collect those into an array # Tags are specials, because we collect those into an array
query.tags.push value.toLowerCase() query.tags.push value.toLowerCase()
when category == 'quote' when category == 'quote'
......
...@@ -695,7 +695,7 @@ class ViewFilter ...@@ -695,7 +695,7 @@ class ViewFilter
# user: username to search for # user: username to search for
# text: text to search for in the body (all the words must be present) # text: text to search for in the body (all the words must be present)
# quote: text to search for in the quote (exact phrease must be present) # quote: text to search for in the quote (exact phrease must be present)
# tag: list of tags to search for. (all must be present) # tags: list of tags to search for. (all must be present)
# time: maximum age of annotation. Accepted values: # time: maximum age of annotation. Accepted values:
# '5 min', '30 min', '1 hour', '12 hours', # '5 min', '30 min', '1 hour', '12 hours',
# '1 day', '1 week', '1 month', '1 year' # '1 day', '1 week', '1 month', '1 year'
...@@ -780,7 +780,6 @@ class ViewFilter ...@@ -780,7 +780,6 @@ class ViewFilter
break break
unless found unless found
matches = false matches = false
console.log "No, tag", wantedTag, "is missing."
break break
when 'time' when 'time'
......
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