From 80b652c508dd51395174a5843cca098b6a4620ec Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 3 Oct 2016 02:51:16 -0700 Subject: [PATCH] Don't show excerpts of hidden replies in the catalog either. --- src/Filtering/PostHiding.coffee | 3 +++ src/General/Index.coffee | 1 + 2 files changed, 4 insertions(+) diff --git a/src/Filtering/PostHiding.coffee b/src/Filtering/PostHiding.coffee index 3bcde4d1d..586aab3ca 100644 --- a/src/Filtering/PostHiding.coffee +++ b/src/Filtering/PostHiding.coffee @@ -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 diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 9622e3374..13db81787 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -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)