Scripts: prune resources

This commit is contained in:
Pieter Vander Vennet 2025-01-27 04:02:03 +01:00
parent e9011b00e6
commit e8b7db1acb

View file

@ -41,7 +41,8 @@ class DownloadCommunityIndex extends Script {
private static stripResourcesObj(resources: Readonly<Record<string, Readonly<CommunityResource>>>) {
const stripped: Record<string, CommunityResource> = {}
for (const k in resources) {
if(k === "twitter" || k === "facebook" || k === "x"){
const type = resources[k].type
if (type === "twitter" || type === "facebook" || type === "x") {
// These channels are toxic nowadays - we simply omit them
continue
}