mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
feat(blocklist): add url-domain host patterns (#3164)
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user