summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2025-06-13 09:26:37 +0100
committerdakkar <dakkar@thenautilus.net>2025-06-13 10:20:30 +0100
commit87f6895ca971f9cccfeb0fdd2113bd6dcb93bb49 (patch)
treebff210ee12b0b4638e77fbf435ab8e279c2b43b6 /packages
parentmerge: Fix uncaught exception hooks and add more shutdown logging. (!1111) (diff)
downloadsharkey-87f6895ca971f9cccfeb0fdd2113bd6dcb93bb49.tar.gz
sharkey-87f6895ca971f9cccfeb0fdd2113bd6dcb93bb49.tar.bz2
sharkey-87f6895ca971f9cccfeb0fdd2113bd6dcb93bb49.zip
avoid pushing to timelines of remote users
Diffstat (limited to 'packages')
-rw-r--r--packages/backend/src/core/NoteCreateService.ts1
-rw-r--r--packages/backend/src/core/NoteEditService.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts
index f8584a4a48..0dd0a9b822 100644
--- a/packages/backend/src/core/NoteCreateService.ts
+++ b/packages/backend/src/core/NoteCreateService.ts
@@ -964,6 +964,7 @@ export class NoteCreateService implements OnApplicationShutdown {
// TODO: あまりにも数が多いと redisPipeline.exec に失敗する(理由は不明)ため、3万件程度を目安に分割して実行するようにする
for (const following of followings) {
+ if (following.followerHost !== null) continue;
// 基本的にvisibleUserIdsには自身のidが含まれている前提であること
if (note.visibility === 'specified' && !note.visibleUserIds.some(v => v === following.followerId)) continue;
diff --git a/packages/backend/src/core/NoteEditService.ts b/packages/backend/src/core/NoteEditService.ts
index d963bf1945..533ee7942d 100644
--- a/packages/backend/src/core/NoteEditService.ts
+++ b/packages/backend/src/core/NoteEditService.ts
@@ -849,6 +849,7 @@ export class NoteEditService implements OnApplicationShutdown {
// TODO: あまりにも数が多いと redisPipeline.exec に失敗する(理由は不明)ため、3万件程度を目安に分割して実行するようにする
for (const following of followings) {
+ if (following.followerHost !== null) continue;
// 基本的にvisibleUserIdsには自身のidが含まれている前提であること
if (note.visibility === 'specified' && !note.visibleUserIds.some(v => v === following.followerId)) continue;