PopupMain.vue: filter tags for each post based on tag ignores

pull/58/head
G1org1owo 2024-07-11 21:19:53 +02:00
parent ba7866e0b0
commit 8a7bc3e6a5
1 changed files with 6 additions and 0 deletions

View File

@ -121,6 +121,12 @@ async function grabPost() {
vm.instanceSpecificData[site.id] = {}; vm.instanceSpecificData[site.id] = {};
} }
// Remove ignored tags
// The complexity for this is quite bad but all the other ways I tried were even worse
vm.tags = vm.tags.filter(tag => cfg.value.tagIgnores.every(
ignoredTag => tag.name != ignoredTag.names[0] // no getters after deserializing
));
pop.posts.push(vm); pop.posts.push(vm);
} }
} }