From e8b7db1acba0beb735dc89b4517085f43d855ced Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 27 Jan 2025 04:02:03 +0100 Subject: [PATCH] Scripts: prune resources --- scripts/downloadCommunityIndex.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/downloadCommunityIndex.ts b/scripts/downloadCommunityIndex.ts index 679a4b4254..2fce588b73 100644 --- a/scripts/downloadCommunityIndex.ts +++ b/scripts/downloadCommunityIndex.ts @@ -41,7 +41,8 @@ class DownloadCommunityIndex extends Script { private static stripResourcesObj(resources: Readonly>>) { const stripped: Record = {} 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 }