Added possible exception to filtering for posts made by user. Added configuration option to allow controlling behaviour: 'Filter Self', defaults to old behaviour (enabled)

This commit is contained in:
pentargency 2017-11-19 06:35:01 -08:00
parent efaea04478
commit ed67b3e968
2 changed files with 7 additions and 0 deletions

View File

@ -125,6 +125,8 @@ Filter =
stub = true
hl = undefined
top = false
if !Conf['Filter Self'] and 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)

View File

@ -179,6 +179,11 @@ Config =
'When enabled, shows backlinks to filtered posts with a line-through decoration. Otherwise, hides the backlinks.'
1
]
'Filter Self': [
true
'Also apply filters to posts known to be yours. (Remember Your Posts must be enabled)'
1
]
'Recursive Hiding': [
true
'Hide replies of hidden posts, recursively.'