mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-03 23:52:45 +01:00
fix
This commit is contained in:
parent
2c7e15f841
commit
0e9bf77174
2 changed files with 6 additions and 2 deletions
|
@ -94,11 +94,13 @@ export class ImportCustomEmojisProcessorService {
|
||||||
force: true,
|
force: true,
|
||||||
});
|
});
|
||||||
await this.customEmojiService.add({
|
await this.customEmojiService.add({
|
||||||
|
originalUrl: driveFile.url,
|
||||||
|
publicUrl: driveFile.webpublicUrl ?? driveFile.url,
|
||||||
|
fileType: driveFile.webpublicType ?? driveFile.type,
|
||||||
name: emojiInfo.name,
|
name: emojiInfo.name,
|
||||||
category: emojiInfo.category,
|
category: emojiInfo.category,
|
||||||
host: null,
|
host: null,
|
||||||
aliases: emojiInfo.aliases,
|
aliases: emojiInfo.aliases,
|
||||||
driveFile,
|
|
||||||
license: emojiInfo.license,
|
license: emojiInfo.license,
|
||||||
isSensitive: emojiInfo.isSensitive,
|
isSensitive: emojiInfo.isSensitive,
|
||||||
localOnly: emojiInfo.localOnly,
|
localOnly: emojiInfo.localOnly,
|
||||||
|
|
|
@ -86,7 +86,9 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
if (isDuplicate) throw new ApiError(meta.errors.duplicateName);
|
if (isDuplicate) throw new ApiError(meta.errors.duplicateName);
|
||||||
|
|
||||||
const addedEmoji = await this.customEmojiService.add({
|
const addedEmoji = await this.customEmojiService.add({
|
||||||
driveFile,
|
originalUrl: driveFile.url,
|
||||||
|
publicUrl: driveFile.webpublicUrl ?? driveFile.url,
|
||||||
|
fileType: driveFile.webpublicType ?? driveFile.type,
|
||||||
name: emoji.name,
|
name: emoji.name,
|
||||||
category: emoji.category,
|
category: emoji.category,
|
||||||
aliases: emoji.aliases,
|
aliases: emoji.aliases,
|
||||||
|
|
Loading…
Reference in a new issue