mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
feat(api): drop explicit media classification on asset uploads (#2530)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user