diff --git a/src/remote/activitypub/kernel/like.ts b/src/remote/activitypub/kernel/like.ts index 17ec73f12b..57d1c37fa0 100644 --- a/src/remote/activitypub/kernel/like.ts +++ b/src/remote/activitypub/kernel/like.ts @@ -21,10 +21,8 @@ export default async (actor: IRemoteUser, activity: ILike) => { let reaction = 'pudding'; // 他のMisskeyインスタンスからのリアクション - if (activity._misskey_reaction) { - if (validateReaction.ok(activity._misskey_reaction)) { - reaction = activity._misskey_reaction; - } + if (activity._misskey_reaction && validateReaction.ok(activity._misskey_reaction)) { + reaction = activity._misskey_reaction; } await create(actor, note, reaction);