feat(blocklist): add url-domain host patterns (#3164)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-03 14:46:08 +02:00
1 parent e9167d96ec
commit 7eebfca20b
28 files changed
+1074 -134

No files matched your search

@@ -330,11 +330,11 @@ async function scanEmbedsForBannedContent(
continue;
}
for (const embed of embeds) {
const imageUrls = [embed.thumbnail?.url, embed.image?.url, embed.video?.url, embed.audio?.url].filter(
const embedUrls = [embed.url, embed.thumbnail?.url, embed.image?.url, embed.video?.url, embed.audio?.url].filter(
(u): u is string => u != null,
);
for (const imageUrl of imageUrls) {
contentModerationService.scanUrl(imageUrl, ctx);
for (const embedUrl of embedUrls) {
contentModerationService.scanUrl(embedUrl, ctx);
}
const children = embed.children ?? [];
for (const child of children) {