Skip to content

Commit f3fdb03

Browse files
committed
added another CDN host to whitelisit
1 parent 379e820 commit f3fdb03

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

application/config.json.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
"help.gradle.org",
6262
"youtube.com",
6363
"www.youtube.com",
64-
"cdn.discordapp.com"
64+
"cdn.discordapp.com",
65+
"media.discordapp.net"
6566
],
6667
"hostBlacklist": [
6768
"bit.ly",

application/src/test/java/org/togetherjava/tjbot/features/moderation/scam/ScamDetectorTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ void setUp() {
3838
"esex", "steam", "gift", "onlyfans", "bitcoin", "btc", "promo", "trader", "trading",
3939
"whatsapp", "crypto", "^claim", "teen", "adobe", "hack", "steamcommunity",
4040
"freenitro", "^earn$", "^earning", ".exe$", "mrbeast"));
41-
when(scamConfig.getHostWhitelist())
42-
.thenReturn(Set.of("discord.com", "discord.media", "discordapp.com", "discordapp.net",
43-
"discordstatus.com", "thehackernews.com", "gradle.org", "help.gradle.org",
44-
"youtube.com", "www.youtube.com", "cdn.discordapp.com"));
41+
when(scamConfig.getHostWhitelist()).thenReturn(Set.of("discord.com", "discord.media",
42+
"discordapp.com", "discordapp.net", "discordstatus.com", "thehackernews.com",
43+
"gradle.org", "help.gradle.org", "youtube.com", "www.youtube.com",
44+
"cdn.discordapp.com", "media.discordapp.net"));
4545
when(scamConfig.getHostBlacklist()).thenReturn(Set.of("bit.ly", "discord.gg", "teletype.in",
4646
"t.me", "corematrix.us", "u.to", "steamcommunity.com", "goo.su", "telegra.ph",
4747
"shorturl.at", "cheatings.xyz", "transfer.sh", "tobimoller.space"));

0 commit comments

Comments
 (0)