Don't show excerpts of hidden replies in the catalog either.

This commit is contained in:
ccd0 2016-10-03 02:51:16 -07:00
parent 3c96afc0b6
commit 80b652c508
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,9 @@ PostHiding =
name: 'Reply Hiding'
cb: @node
isHidden: (boardID, threadID, postID) ->
!!(PostHiding.db and PostHiding.db.get {boardID, threadID, postID})
node: ->
return if !@isReply or @isClone or @isFetchedQuote

View File

@ -725,6 +725,7 @@ Index =
replies = []
for data in lastReplies
continue if PostHiding.isHidden(g.BOARD.ID, thread.ID, data.no)
continue if Filter.isHidden(Build.parseJSON data, g.BOARD.ID)
reply = Build.catalogReply thread, data
RelativeDates.update $('time', reply)