diff --git a/src/Mastodon.ts b/src/Mastodon.ts index cf98713..755725e 100644 --- a/src/Mastodon.ts +++ b/src/Mastodon.ts @@ -186,14 +186,14 @@ ${text.split("\n").map(txt => " > " + txt).join("\n")}`) return overview.length + rest.join("\n").length + 1 } - private static notMastodon = ["wiki.openstreetmap.org", "hdyc.neis-one.org", "matrix.to","facebook.com"] + private static notMastodon = ["wiki.openstreetmap.org", "hdyc.neis-one.org", "matrix.to","facebook.com","github", "tasks.hotosm.org","community.openstreetmap.org","mapillary.com","wikimedia.org","wikipedia.org","wikidata.org"] private static isMastodon = ["en.osm.town", ".social", "mstdn", "mastodon", "mapstodon","masto"] static isProbablyMastodonLink(link: string) { if (this.isMastodon.some(white => link.indexOf(white) >= 0)) { return true } - if (!this.notMastodon.some(white => link.indexOf(white) >= 0)) { + if (this.notMastodon.some(black => link.indexOf(black) >= 0)) { return false } return true; // probably?