summaryrefslogtreecommitdiff
path: root/src/api/endpoints/posts/reactions/create.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints/posts/reactions/create.ts')
-rw-r--r--src/api/endpoints/posts/reactions/create.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/endpoints/posts/reactions/create.ts b/src/api/endpoints/posts/reactions/create.ts
index 0b0e0e294d..93d9756d02 100644
--- a/src/api/endpoints/posts/reactions/create.ts
+++ b/src/api/endpoints/posts/reactions/create.ts
@@ -116,7 +116,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
});
// この投稿をWatchする
- // TODO: ユーザーが「リアクションしたときに自動でWatchする」設定を
- // オフにしていた場合はしない
- watch(user._id, post);
+ if (user.settings.auto_watch !== false) {
+ watch(user._id, post);
+ }
});