fix: リモートの絵文字を重複判定するようにした

This commit is contained in:
mattyatea 2023-09-17 19:20:48 +09:00
parent 4847dc8756
commit cd45dfcc1a
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import { DriveService } from '@/core/DriveService.js';
import { GlobalEventService } from '@/core/GlobalEventService.js';
import { EmojiEntityService } from '@/core/entities/EmojiEntityService.js';
import { ApiError } from '../../../error.js';
import {IsNull} from "typeorm";
export const meta = {
tags: ['admin'],
@ -78,6 +79,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
const duplicationEmoji = await this.emojisRepository.find({
where: {
name: emoji.name,
host: IsNull()
},
});