From 163e60e32ee301df497f187ea0625cff1cb16aa5 Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Fri, 25 May 2018 22:25:38 +0900
Subject: [PATCH] Publish mention event

---
 src/services/note/create.ts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/services/note/create.ts b/src/services/note/create.ts
index f049c34b65..b9ff1f679b 100644
--- a/src/services/note/create.ts
+++ b/src/services/note/create.ts
@@ -283,6 +283,8 @@ export default async (user: IUser, data: {
 		mentionedUsers = mentionedUsers.filter(x => x != null);
 
 		mentionedUsers.filter(u => isLocalUser(u)).forEach(async u => {
+			event(u, 'mention', noteObj);
+
 			// 既に言及されたユーザーに対する返信や引用renoteの場合も無視
 			if (data.reply && data.reply.userId.equals(u._id)) return;
 			if (data.renote && data.renote.userId.equals(u._id)) return;