summaryrefslogtreecommitdiff
path: root/src/services/note
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2018-07-23 13:56:25 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2018-07-23 13:56:25 +0900
commit427b3dcd73d361fc77d49c33b6b4022329214f71 (patch)
tree900846551d85e205a7e1d271e0792f90f78e423e /src/services/note
parentFix #1957 (diff)
downloadsharkey-427b3dcd73d361fc77d49c33b6b4022329214f71.tar.gz
sharkey-427b3dcd73d361fc77d49c33b6b4022329214f71.tar.bz2
sharkey-427b3dcd73d361fc77d49c33b6b4022329214f71.zip
Fix semantic errors
Diffstat (limited to 'src/services/note')
-rw-r--r--src/services/note/create.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/services/note/create.ts b/src/services/note/create.ts
index 8536b8b561..340120053b 100644
--- a/src/services/note/create.ts
+++ b/src/services/note/create.ts
@@ -363,10 +363,10 @@ async function notifyToWatchersOfRenotee(renote: INote, user: IUser, nm: Notific
noteId: renote._id,
userId: { $ne: user._id }
}, {
- fields: {
- userId: true
- }
- });
+ fields: {
+ userId: true
+ }
+ });
watchers.forEach(watcher => {
nm.push(watcher.userId, type);
@@ -378,10 +378,10 @@ async function notifyToWatchersOfReplyee(reply: INote, user: IUser, nm: Notifica
noteId: reply._id,
userId: { $ne: user._id }
}, {
- fields: {
- userId: true
- }
- });
+ fields: {
+ userId: true
+ }
+ });
watchers.forEach(watcher => {
nm.push(watcher.userId, 'reply');
@@ -432,7 +432,7 @@ async function publishToFollowers(note: INote, noteObj: any, user: IUser, noteAc
});
queue.forEach(inbox => {
- deliver(user, noteActivity, inbox);
+ deliver(user as any, noteActivity, inbox);
});
}