summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/UserBlockingService.ts
diff options
context:
space:
mode:
authorおさむのひと <46447427+samunohito@users.noreply.github.com>2025-01-14 20:14:02 +0900
committerGitHub <noreply@github.com>2025-01-14 11:14:02 +0000
commitd2e22f90507a1920c15d0b997009f52067a2a828 (patch)
tree3bfb0ef6ab271cb48ac3fc324f0b512da210df47 /packages/backend/src/core/UserBlockingService.ts
parentenhance: 連合モードにあわせてフロントエンドを変化させ... (diff)
downloadsharkey-d2e22f90507a1920c15d0b997009f52067a2a828.tar.gz
sharkey-d2e22f90507a1920c15d0b997009f52067a2a828.tar.bz2
sharkey-d2e22f90507a1920c15d0b997009f52067a2a828.zip
refactor: SystemWebhook/UserWebhookの配信処理呼び出し部分の改善 (#15035)
* UserWebhook側の対処 * SystemWebhook側の対処 * fix test
Diffstat (limited to 'packages/backend/src/core/UserBlockingService.ts')
-rw-r--r--packages/backend/src/core/UserBlockingService.ts8
1 files changed, 1 insertions, 7 deletions
diff --git a/packages/backend/src/core/UserBlockingService.ts b/packages/backend/src/core/UserBlockingService.ts
index 2f1310b8ef..8da1bb2092 100644
--- a/packages/backend/src/core/UserBlockingService.ts
+++ b/packages/backend/src/core/UserBlockingService.ts
@@ -118,13 +118,7 @@ export class UserBlockingService implements OnModuleInit {
schema: 'UserDetailedNotMe',
}).then(async packed => {
this.globalEventService.publishMainStream(follower.id, 'unfollow', packed);
-
- const webhooks = (await this.webhookService.getActiveWebhooks()).filter(x => x.userId === follower.id && x.on.includes('unfollow'));
- for (const webhook of webhooks) {
- this.queueService.userWebhookDeliver(webhook, 'unfollow', {
- user: packed,
- });
- }
+ this.webhookService.enqueueUserWebhook(follower.id, 'unfollow', { user: packed });
});
}