From 61246e87793ac59875f727bdf73abd35c704fa00 Mon Sep 17 00:00:00 2001 From: riku6460 <17585784+riku6460@users.noreply.github.com> Date: Sat, 7 Oct 2023 20:26:16 +0900 Subject: [PATCH] =?UTF-8?q?=E9=80=A3=E5=90=88=E3=81=AA=E3=81=97=E3=82=A2?= =?UTF-8?q?=E3=83=B3=E3=82=B1=E3=83=BC=E3=83=88=E3=81=AEUpdate=E3=81=8C?= =?UTF-8?q?=E3=83=AA=E3=83=A2=E3=83=BC=E3=83=88=E3=81=AB=E9=85=8D=E4=BF=A1?= =?UTF-8?q?=E3=81=95=E3=82=8C=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86=E3=81=AE?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3=20(MisskeyIO#177)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com> --- packages/backend/src/core/PollService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend/src/core/PollService.ts b/packages/backend/src/core/PollService.ts index 551c779769..2178bdb8e9 100644 --- a/packages/backend/src/core/PollService.ts +++ b/packages/backend/src/core/PollService.ts @@ -96,6 +96,8 @@ export class PollService { const note = await this.notesRepository.findOneBy({ id: noteId }); if (note == null) throw new Error('note not found'); + if (note.localOnly) return; + const user = await this.usersRepository.findOneBy({ id: note.userId }); if (user == null) throw new Error('note not found');