Skip to content

Commit

Permalink
Fix empty addon watcher announcements (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeyax authored Jan 5, 2025
1 parent 0145a9f commit 64ec4ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
}

0 comments on commit 64ec4ae

Please sign in to comment.