This commit is contained in:
syuilo 2018-12-03 17:20:15 +09:00
parent 990cd7ccd2
commit 8886a24f16
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 8 additions and 6 deletions

View file

@ -125,10 +125,12 @@ export default class 藍 {
});
} else {
// リアクションする
this.api('notes/reactions/create', {
noteId: msg.id,
reaction: reaction
});
if (reaction) {
this.api('notes/reactions/create', {
noteId: msg.id,
reaction: reaction
});
}
}
}, 1000);
}

View file

@ -17,11 +17,11 @@ export default class FollowModule implements IModule {
userId: msg.userId,
});
return {
reaction: 'like'
reaction: msg.friend.love >= 0 ? 'like' : null
};
} else {
return {
reaction: 'hmm'
reaction: msg.friend.love >= 0 ? 'hmm' : null
};
}
} else {