From d0c8cb256277450cfcf7799bf9dd42460d7fbc4c Mon Sep 17 00:00:00 2001 From: Xeltica Date: Mon, 3 Dec 2018 00:10:15 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=90=E3=82=B0=E3=81=A3=E3=81=9F=E3=81=AE?= =?UTF-8?q?=E3=81=A7=E3=82=84=E3=82=8A=E6=96=B9=E3=81=8B=E3=81=88=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/message-like.ts | 1 - src/modules/follow/index.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/message-like.ts b/src/message-like.ts index 07463d8..59a7f94 100644 --- a/src/message-like.ts +++ b/src/message-like.ts @@ -43,7 +43,6 @@ export default class MessageLike { this.ai.api('users/show', { userId: this.userId }).then(user => { - this.messageOrNote.user = user; this.friend.updateUser(user); }); } diff --git a/src/modules/follow/index.ts b/src/modules/follow/index.ts index 099fd88..0e8e265 100644 --- a/src/modules/follow/index.ts +++ b/src/modules/follow/index.ts @@ -13,7 +13,7 @@ export default class FollowModule implements IModule { public onMention = (msg: MessageLike) => { if (msg.text && msg.text.includes('フォロー')) { - if (msg.user.isFollowing) { + if (msg.friend.doc.user.isFollowing) { msg.reply(serifs.follow.alreadyFollowed); } else if (msg.friend.love < -5) { msg.reply(serifs.follow.ng);