From 8a7bc3e6a5391c9ffc2ee564eefc3d921d82531a Mon Sep 17 00:00:00 2001 From: G1org1owo <77230371+G1org1owo@users.noreply.github.com> Date: Thu, 11 Jul 2024 21:19:53 +0200 Subject: [PATCH] PopupMain.vue: filter tags for each post based on tag ignores --- src/popup/pages/PopupMain.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/popup/pages/PopupMain.vue b/src/popup/pages/PopupMain.vue index a5d5d75..a5f229c 100644 --- a/src/popup/pages/PopupMain.vue +++ b/src/popup/pages/PopupMain.vue @@ -121,6 +121,12 @@ async function grabPost() { 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); } }