diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-03-16 15:08:48 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-03-16 15:08:48 +0900 |
| commit | 8ae9d2eaa8b0842671558370f787902e94b7f5a3 (patch) | |
| tree | 90c37521f7cbe381d8b880e68fba89dc2f6fe7f1 /packages/backend/src/core/CustomEmojiService.ts | |
| parent | Update NotificationService.ts (diff) | |
| download | misskey-8ae9d2eaa8b0842671558370f787902e94b7f5a3.tar.gz misskey-8ae9d2eaa8b0842671558370f787902e94b7f5a3.tar.bz2 misskey-8ae9d2eaa8b0842671558370f787902e94b7f5a3.zip | |
enhance: カスタム絵文字にライセンス情報を付与できるように
Resolve #10091
Diffstat (limited to 'packages/backend/src/core/CustomEmojiService.ts')
| -rw-r--r-- | packages/backend/src/core/CustomEmojiService.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/backend/src/core/CustomEmojiService.ts b/packages/backend/src/core/CustomEmojiService.ts index 4ef21e5117..b404848d7d 100644 --- a/packages/backend/src/core/CustomEmojiService.ts +++ b/packages/backend/src/core/CustomEmojiService.ts @@ -44,6 +44,7 @@ export class CustomEmojiService { category: string | null; aliases: string[]; host: string | null; + license: string | null; }): Promise<Emoji> { const emoji = await this.emojisRepository.insert({ id: this.idService.genId(), @@ -55,6 +56,7 @@ export class CustomEmojiService { originalUrl: data.driveFile.url, publicUrl: data.driveFile.webpublicUrl ?? data.driveFile.url, type: data.driveFile.webpublicType ?? data.driveFile.type, + license: data.license, }).then(x => this.emojisRepository.findOneByOrFail(x.identifiers[0])); if (data.host == null) { |