Restore filtering on email. #2171

This commit is contained in:
ccd0 2019-04-04 18:43:43 -07:00
parent d0d3f1ed13
commit d2e8efb59c
4 changed files with 6 additions and 0 deletions

View File

@ -171,6 +171,7 @@ Filter =
tripcode: (post) -> post.info.tripcode
capcode: (post) -> post.info.capcode
pass: (post) -> post.info.pass
email: (post) -> post.info.email
subject: (post) -> post.info.subject or (if post.isReply then undefined else '')
comment: (post) -> (post.info.comment ?= Build.parseComment post.info.commentHTML.innerHTML)
flag: (post) -> post.info.flag
@ -256,6 +257,7 @@ Filter =
['Tripcode', 'tripcode']
['Capcode', 'capcode']
['Pass Date', 'pass']
['Email', 'email']
['Subject', 'subject']
['Comment', 'comment']
['Flag', 'flag']

View File

@ -7,6 +7,7 @@
<option value="tripcode">Tripcode</option>
<option value="capcode">Capcode</option>
<option value="pass">Pass Date</option>
<option value="email">Email</option>
<option value="subject">Subject</option>
<option value="comment">Comment</option>
<option value="flag">Flag</option>

View File

@ -28,6 +28,7 @@ class Post
@info =
subject: @nodes.subject?.textContent or undefined
name: @nodes.name?.textContent
email: if @nodes.email then decodeURIComponent(@nodes.email.href.replace(/^mailto:/, ''))
tripcode: @nodes.tripcode?.textContent
uniqueID: @nodes.uniqueID?.textContent
capcode: @nodes.capcode?.textContent.replace '## ', ''

View File

@ -728,6 +728,8 @@ Config =
#/./
"""
email: ''
subject: """
# Filter Generals on /v/:
#/general/i;boards:v;op:only