This commit is contained in:
syuilo 2019-01-24 20:49:27 +09:00
parent 51ae9d171c
commit b6a671fe51
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -116,6 +116,18 @@ export default class 藍 {
this.onReceiveMessage(new Message(this, data, false)); this.onReceiveMessage(new Message(this, data, false));
}); });
// Renoteされたとき
mainStream.on('renote', async data => {
if (data.userId == this.account.id) return; // 自分は弾く
if (data.text == null && (data.files || []).length == 0) return;
// リアクションする
this.api('notes/reactions/create', {
noteId: data.id,
reaction: 'love'
});
});
// メッセージ // メッセージ
mainStream.on('messagingMessage', data => { mainStream.on('messagingMessage', data => {
if (data.userId == this.account.id) return; // 自分は弾く if (data.userId == this.account.id) return; // 自分は弾く