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:
parent
efaea04478
commit
ed67b3e968
@ -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)
|
||||
|
||||
@ -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.'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user