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,11 +125,13 @@ export default class 藍 {
}); });
} else { } else {
// リアクションする // リアクションする
if (reaction) {
this.api('notes/reactions/create', { this.api('notes/reactions/create', {
noteId: msg.id, noteId: msg.id,
reaction: reaction reaction: reaction
}); });
} }
}
}, 1000); }, 1000);
} }

View file

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