Merge remote-tracking branch 'pentargency/filter-self-toggle'

This commit is contained in:
ccd0 2017-12-28 02:37:25 -08:00
commit 96f2a82205
2 changed files with 4 additions and 2 deletions

View File

@ -125,6 +125,8 @@ Filter =
stub = true
hl = undefined
top = false
if QuoteYou.isYou(post)
hideable = false
for key of Filter.filters when ((value = Filter[key] post)?)
# Continue if there's nothing to filter (no tripcode for example).
for filter in Filter.filters[key] when (result = filter value, post.boardID, post.isReply)

View File

@ -33,8 +33,8 @@ QuoteYou =
isYou: (post) ->
!!QuoteYou.db?.get {
boardID: post.board.ID
threadID: post.thread.ID
boardID: post.boardID
threadID: post.threadID
postID: post.ID
}