respect enabled
This commit is contained in:
parent
8d640d0b79
commit
34bef1074e
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,8 @@ export const muteFilterHits = (status) => {
|
||||||
const muteFilters = Object.values(useServerSideStorageStore().prefsStorage.simple.muteFilters)
|
const muteFilters = Object.values(useServerSideStorageStore().prefsStorage.simple.muteFilters)
|
||||||
|
|
||||||
return muteFilters.toSorted((a,b) => b.order - a.order).map(filter => {
|
return muteFilters.toSorted((a,b) => b.order - a.order).map(filter => {
|
||||||
const { hide, expires, name, value, type} = filter
|
const { hide, expires, name, value, type, enabled} = filter
|
||||||
|
if (!enabled) return false
|
||||||
if (expires !== null && expires < Date.now()) return false
|
if (expires !== null && expires < Date.now()) return false
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'word': {
|
case 'word': {
|
||||||
|
|
Loading…
Add table
Reference in a new issue