Don't show excerpts of hidden replies in the catalog either.
This commit is contained in:
parent
3c96afc0b6
commit
80b652c508
@ -10,6 +10,9 @@ PostHiding =
|
|||||||
name: 'Reply Hiding'
|
name: 'Reply Hiding'
|
||||||
cb: @node
|
cb: @node
|
||||||
|
|
||||||
|
isHidden: (boardID, threadID, postID) ->
|
||||||
|
!!(PostHiding.db and PostHiding.db.get {boardID, threadID, postID})
|
||||||
|
|
||||||
node: ->
|
node: ->
|
||||||
return if !@isReply or @isClone or @isFetchedQuote
|
return if !@isReply or @isClone or @isFetchedQuote
|
||||||
|
|
||||||
|
|||||||
@ -725,6 +725,7 @@ Index =
|
|||||||
|
|
||||||
replies = []
|
replies = []
|
||||||
for data in lastReplies
|
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)
|
continue if Filter.isHidden(Build.parseJSON data, g.BOARD.ID)
|
||||||
reply = Build.catalogReply thread, data
|
reply = Build.catalogReply thread, data
|
||||||
RelativeDates.update $('time', reply)
|
RelativeDates.update $('time', reply)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user