Merge remote-tracking branch 'pentargency/filter-self-toggle'
This commit is contained in:
commit
96f2a82205
@ -125,6 +125,8 @@ Filter =
|
|||||||
stub = true
|
stub = true
|
||||||
hl = undefined
|
hl = undefined
|
||||||
top = false
|
top = false
|
||||||
|
if QuoteYou.isYou(post)
|
||||||
|
hideable = false
|
||||||
for key of Filter.filters when ((value = Filter[key] post)?)
|
for key of Filter.filters when ((value = Filter[key] post)?)
|
||||||
# Continue if there's nothing to filter (no tripcode for example).
|
# 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)
|
for filter in Filter.filters[key] when (result = filter value, post.boardID, post.isReply)
|
||||||
|
|||||||
@ -33,8 +33,8 @@ QuoteYou =
|
|||||||
|
|
||||||
isYou: (post) ->
|
isYou: (post) ->
|
||||||
!!QuoteYou.db?.get {
|
!!QuoteYou.db?.get {
|
||||||
boardID: post.board.ID
|
boardID: post.boardID
|
||||||
threadID: post.thread.ID
|
threadID: post.threadID
|
||||||
postID: post.ID
|
postID: post.ID
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user