mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-12 12:40:54 +01:00
Merge if-statements (#3478)
This commit is contained in:
parent
2e83440e70
commit
03588b3fd6
1 changed files with 2 additions and 4 deletions
|
@ -21,11 +21,9 @@ export default async (actor: IRemoteUser, activity: ILike) => {
|
||||||
let reaction = 'pudding';
|
let reaction = 'pudding';
|
||||||
|
|
||||||
// 他のMisskeyインスタンスからのリアクション
|
// 他のMisskeyインスタンスからのリアクション
|
||||||
if (activity._misskey_reaction) {
|
if (activity._misskey_reaction && validateReaction.ok(activity._misskey_reaction)) {
|
||||||
if (validateReaction.ok(activity._misskey_reaction)) {
|
|
||||||
reaction = activity._misskey_reaction;
|
reaction = activity._misskey_reaction;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
await create(actor, note, reaction);
|
await create(actor, note, reaction);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue