make the linter happy
This commit is contained in:
parent
8cb2cb057a
commit
a81be17d69
@ -90,7 +90,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||||||
const addedEmoji = await this.customEmojiService.add({
|
const addedEmoji = await this.customEmojiService.add({
|
||||||
driveFile,
|
driveFile,
|
||||||
name: nameNfc,
|
name: nameNfc,
|
||||||
category: emoji.category?.normalize('NFC'),
|
category: emoji.category?.normalize('NFC') ?? null,
|
||||||
aliases: emoji.aliases?.map(a => a.normalize('NFC')),
|
aliases: emoji.aliases?.map(a => a.normalize('NFC')),
|
||||||
host: null,
|
host: null,
|
||||||
license: emoji.license,
|
license: emoji.license,
|
||||||
|
@ -46,21 +46,21 @@ export function checkWordMute(note: Note, me: MeDetailed | null | undefined, mut
|
|||||||
function getNoteText(note: Note): string {
|
function getNoteText(note: Note): string {
|
||||||
const textParts: string[] = [];
|
const textParts: string[] = [];
|
||||||
|
|
||||||
if (note.cw)
|
if (note.cw) textParts.push(note.cw);
|
||||||
textParts.push(note.cw);
|
|
||||||
|
|
||||||
if (note.text)
|
if (note.text) textParts.push(note.text);
|
||||||
textParts.push(note.text);
|
|
||||||
|
|
||||||
if (note.files)
|
if (note.files) {
|
||||||
for (const file of note.files)
|
for (const file of note.files) {
|
||||||
if (file.comment)
|
if (file.comment) textParts.push(file.comment);
|
||||||
textParts.push(file.comment);
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (note.poll)
|
if (note.poll) {
|
||||||
for (const choice of note.poll.choices)
|
for (const choice of note.poll.choices) {
|
||||||
if (choice.text)
|
if (choice.text) textParts.push(choice.text);
|
||||||
textParts.push(choice.text);
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return textParts.join('\n').trim();
|
return textParts.join('\n').trim();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user