summaryrefslogtreecommitdiff
path: root/src/services/note
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-05-07 04:26:45 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-05-07 04:26:45 +0900
commit4955df3911146baf6f0ea8ba2a3b369932655057 (patch)
tree86a25a5976f8449a7034ab61d28ef8221e051902 /src/services/note
parent良い感じに (diff)
downloadmisskey-4955df3911146baf6f0ea8ba2a3b369932655057.tar.gz
misskey-4955df3911146baf6f0ea8ba2a3b369932655057.tar.bz2
misskey-4955df3911146baf6f0ea8ba2a3b369932655057.zip
oops
Diffstat (limited to 'src/services/note')
-rw-r--r--src/services/note/create.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/services/note/create.ts b/src/services/note/create.ts
index d68fead5c5..634c2e263d 100644
--- a/src/services/note/create.ts
+++ b/src/services/note/create.ts
@@ -30,7 +30,7 @@ class NotificationManager {
private list: Array<{
user: ILocalUser['_id'],
reason: Reason;
- }>;
+ }> = [];
constructor(user, note) {
this.user = user;
@@ -300,10 +300,10 @@ export default async (user: IUser, data: {
});
// Append mentions data
- if (mentions.length > 0) {
+ if (mentionedUsers.length > 0) {
Note.update({ _id: note._id }, {
$set: {
- mentions
+ mentions: mentionedUsers.map(u => u._id)
}
});
}