feat(api): drop explicit media classification on asset uploads (#2530)

This commit is contained in:
Hampus
2026-09-06 16:12:25 +02:00
committed by GitHub
parent d784c0692e
commit 8e0516a8c3
8 changed files with 15 additions and 23 deletions
@@ -108,7 +108,7 @@ export class AvatarService {
type: 'base64',
base64: base64Data,
version: 2,
nsfw: 'block',
nsfw: 'allow',
}),
kind,
errorPath,
@@ -163,7 +163,7 @@ export class AvatarService {
type: 'base64',
base64: base64Data,
version: 2,
nsfw: 'block',
nsfw: 'allow',
}),
kind: 'avatar',
errorPath,
@@ -403,7 +403,7 @@ export class EntityAssetService {
type: 'base64',
base64: base64Data,
version: 2,
nsfw: 'block',
nsfw: 'allow',
}),
kind,
errorPath,
+1 -1
View File
@@ -586,7 +586,7 @@ export class WebhookService {
type: 'external',
url: avatarUrl,
with_base64: true,
nsfw: 'block',
nsfw: 'allow',
});
if (!metadata?.base64) {
await this.cacheService.set(cacheKey, WEBHOOK_AVATAR_MISSING_CACHE_VALUE, seconds('5 minutes'));