mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-04 16:35:56 +02:00
Add external service support for sensitive media detection
- Add sensitiveMediaDetectionProxyUrl field to Meta model - Create migration for new database field - Update admin API endpoints to expose and update the proxy URL - Modify AiService to support external API calls when proxy URL is configured - Update frontend admin UI to add proxy URL configuration field - Add i18n strings for proxy URL in English and Japanese Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
export class SensitiveMediaDetectionProxy1731916961000 {
|
||||
name = 'SensitiveMediaDetectionProxy1731916961000'
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "meta" ADD "sensitiveMediaDetectionProxyUrl" character varying(1024)`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "sensitiveMediaDetectionProxyUrl"`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user