Skip to content

Commit

Permalink
連合なしアンケートのUpdateがリモートに配信されてしまうのを修正 (misskey-dev#11977)
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 authored and kanarikanaru committed Oct 12, 2023
1 parent 78df786 commit 4513f83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/src/core/PollService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 4513f83

Please sign in to comment.