* Fix #7431

* fix
This commit is contained in:
MeiMei
2021-05-11 12:41:02 +09:00
committed by GitHub
parent 6b43c5c18c
commit 917e57d475
2 changed files with 14 additions and 7 deletions

View File

@@ -11,6 +11,11 @@ export default async (actor: IRemoteUser, activity: ILike) => {
await extractEmojis(activity.tag || [], actor.host).catch(() => null);
await create(actor, note, activity._misskey_reaction || activity.content || activity.name);
return `ok`;
return await create(actor, note, activity._misskey_reaction || activity.content || activity.name).catch(e => {
if (e.id === '51c42bb4-931a-456b-bff7-e5a8a70dd298') {
return 'skip: already reacted';
} else {
throw e;
}
}).then(() => 'ok');
};