diff --git a/packages/backend/src/core/NoteEditService.ts b/packages/backend/src/core/NoteEditService.ts index 35ff02f786..1a34fa1154 100644 --- a/packages/backend/src/core/NoteEditService.ts +++ b/packages/backend/src/core/NoteEditService.ts @@ -214,7 +214,7 @@ export class NoteEditService implements OnApplicationShutdown { if (!editid) { throw new Error('fail'); - }; + } const oldnote = await this.notesRepository.findOneBy({ id: editid, @@ -222,11 +222,11 @@ export class NoteEditService implements OnApplicationShutdown { if (oldnote == null) { throw new Error('no such note'); - }; + } if (oldnote.userId !== user.id) { throw new Error('not the author'); - }; + } // チャンネル外にリプライしたら対象のスコープに合わせる // (クライアントサイドでやっても良い処理だと思うけどとりあえずサーバーサイドで) diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts index 476db3e9a6..a4f2f4bde2 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -366,7 +366,7 @@ export function getNoteMenu(props: { text: i18n.ts.edit, danger: true, action: edit, - }: undefined, + } : undefined, { icon: 'ti ti-edit', text: i18n.ts.deleteAndEdit,