summaryrefslogtreecommitdiff
path: root/src/services/note
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2018-07-14 19:49:21 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2018-07-14 19:49:21 +0900
commitc99e864dbc2c64e940bbe3f63d9688e15553e4b8 (patch)
tree8e86b5506c17ae1c2edff2346e88c0c5e17acfde /src/services/note
parentUpdate create.ts (diff)
downloadsharkey-c99e864dbc2c64e940bbe3f63d9688e15553e4b8.tar.gz
sharkey-c99e864dbc2c64e940bbe3f63d9688e15553e4b8.tar.bz2
sharkey-c99e864dbc2c64e940bbe3f63d9688e15553e4b8.zip
:sparkles:
Diffstat (limited to 'src/services/note')
-rw-r--r--src/services/note/create.ts30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/services/note/create.ts b/src/services/note/create.ts
index 015227d419..aec0e78964 100644
--- a/src/services/note/create.ts
+++ b/src/services/note/create.ts
@@ -308,7 +308,7 @@ export default async (user: IUser, data: {
// Publish event to followers stream
stream(following.followerId, 'note', noteObj);
-
+
if (isRemoteUser(user) || note.visibility != 'public') {
publishHybridTimelineStream(following.followerId, noteObj);
}
@@ -363,14 +363,14 @@ export default async (user: IUser, data: {
// 削除されたドキュメントは除く
deletedAt: { $exists: false }
}, {
- fields: {
- userId: true
- }
- }).then(watchers => {
- watchers.forEach(watcher => {
- nm.push(watcher.userId, 'reply');
+ fields: {
+ userId: true
+ }
+ }).then(watchers => {
+ watchers.forEach(watcher => {
+ nm.push(watcher.userId, 'reply');
+ });
});
- });
// この投稿をWatchする
if (isLocalUser(user) && user.settings.autoWatch !== false) {
@@ -392,14 +392,14 @@ export default async (user: IUser, data: {
noteId: data.renote._id,
userId: { $ne: user._id }
}, {
- fields: {
- userId: true
- }
- }).then(watchers => {
- watchers.forEach(watcher => {
- nm.push(watcher.userId, type);
+ fields: {
+ userId: true
+ }
+ }).then(watchers => {
+ watchers.forEach(watcher => {
+ nm.push(watcher.userId, type);
+ });
});
- });
// この投稿をWatchする
if (isLocalUser(user) && user.settings.autoWatch !== false) {