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 riku6460 committed Oct 7, 2023
1 parent 99e14d3 commit b301a49
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 b301a49

Please sign in to comment.