Skip to content

Commit

Permalink
Delete対象Noteがなかったらリトライするようにもどす
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Jan 29, 2020
1 parent 0986631 commit b707cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/remote/activitypub/kernel/delete/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default async function(actor: IRemoteUser, uri: string): Promise<string>
const note = await Note.findOne({ uri });

if (note == null) {
return 'note not found';
throw new Error('note not found (yet)');
}

if (!note.userId.equals(actor._id)) {
Expand Down

0 comments on commit b707cea

Please sign in to comment.