Skip to content

Commit

Permalink
not reacted な Undo.Like がinboxに滞留するのを修正 Fix #2888
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Aug 5, 2021
1 parent d92e66a commit 1cfb5e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/remote/activitypub/kernel/undo/like.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export default async (actor: IRemoteUser, activity: ILike): Promise<string> => {
const note = await fetchNote(targetUri);
if (!note) return `skip: target note not found ${targetUri}`;

await deleteReaction(actor, note);
await deleteReaction(actor, note).catch(e => {
if (e.id === '60527ec9-b4cb-4a88-a6bd-32d3ad26817d') return;
throw e;
});

return `ok`;
};

0 comments on commit 1cfb5e0

Please sign in to comment.