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 }