Merge remote-tracking branch 'pentargency/filter-self-toggle'
This commit is contained in:
commit
96f2a82205
@ -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)
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user