Fix empty addon watcher announcements (#778)

This commit is contained in:
Sleeyax
2025-01-05 20:13:04 +01:00
committed by GitHub
parent 0145a9f772
commit 64ec4ae7f7
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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
+1 -1
View File
@@ -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",
]
}