mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
Merge if-statements (#3478)
This commit is contained in:
parent
a234b40694
commit
cbe691a0c6
@ -21,10 +21,8 @@ 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 New Issue
Block a user