Scripts: prune resources
This commit is contained in:
parent
e9011b00e6
commit
e8b7db1acb
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue