diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-10-21 00:28:27 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-10-21 00:28:27 +0900 |
| commit | 98c26dfff80903dc082179a7df91d7a19af9fb08 (patch) | |
| tree | 51197f4e0fffb35c9796a5b5017009a668a6e277 /src/remote/activitypub/kernel/undo/like.ts | |
| parent | lint (diff) | |
| download | sharkey-98c26dfff80903dc082179a7df91d7a19af9fb08.tar.gz sharkey-98c26dfff80903dc082179a7df91d7a19af9fb08.tar.bz2 sharkey-98c26dfff80903dc082179a7df91d7a19af9fb08.zip | |
fix(activitypub): not reacted な Undo.Like がinboxに滞留するのを修正
https: //github.com/mei23/misskey/commit/1cfb5e09a44819b82333df26409ec9d9657bdcfc
Co-Authored-By: MeiMei <30769358+mei23@users.noreply.github.com>
Diffstat (limited to 'src/remote/activitypub/kernel/undo/like.ts')
| -rw-r--r-- | src/remote/activitypub/kernel/undo/like.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/remote/activitypub/kernel/undo/like.ts b/src/remote/activitypub/kernel/undo/like.ts index 7f821cada0..107d3053e3 100644 --- a/src/remote/activitypub/kernel/undo/like.ts +++ b/src/remote/activitypub/kernel/undo/like.ts @@ -12,6 +12,10 @@ export default async (actor: IRemoteUser, activity: ILike) => { 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`; }; |