From 64ec4ae7f7e1397f6a11def3136a97bc396e86bc Mon Sep 17 00:00:00 2001 From: Sleeyax Date: Sun, 5 Jan 2025 20:13:04 +0100 Subject: [PATCH] Fix empty addon watcher announcements (#778) --- build.js | 3 ++- config.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.js b/build.js index 51198e1..321b572 100644 --- a/build.js +++ b/build.js @@ -111,7 +111,8 @@ getCached().then(cached => { }) if (cached.catalog.length && !cached.catalog.find(el => ((el || {}).manifest || {}).id === addonManifest.id)) { task.manifest = addonManifest - newAddons.push(task) + if (!config.blockedManifests.includes(task.url)) + newAddons.push(task) } task.labels.pop('approved') // we shouldn't show the "approved" label on the addon page diff --git a/config.js b/config.js index 6d93645..acb3ab5 100644 --- a/config.js +++ b/config.js @@ -37,7 +37,7 @@ module.exports = { "needle": { "open_timeout": 5000, "response_timeout": 5000, "read_timeout": 5000, "follow_max": 5 }, // output folder for build "build-dir": "./out", - "blockedAnnouncers": [ + "blockedManifests": [ "https://comet.elfhosted.com/manifest.json", ] }