diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-09-29 11:29:54 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-09-29 11:29:54 +0900 |
| commit | b9da1415a50f6036350c6453d4a681b58bf17d1e (patch) | |
| tree | 06614d5be85f027890a969548ca816e6a36c8c78 /packages/backend/src/core/UserFollowingService.ts | |
| parent | .js (diff) | |
| download | sharkey-b9da1415a50f6036350c6453d4a681b58bf17d1e.tar.gz sharkey-b9da1415a50f6036350c6453d4a681b58bf17d1e.tar.bz2 sharkey-b9da1415a50f6036350c6453d4a681b58bf17d1e.zip | |
feat: 通知の受信設定を強化
Diffstat (limited to 'packages/backend/src/core/UserFollowingService.ts')
| -rw-r--r-- | packages/backend/src/core/UserFollowingService.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/packages/backend/src/core/UserFollowingService.ts b/packages/backend/src/core/UserFollowingService.ts index 5b2b0205d9..230f6ef261 100644 --- a/packages/backend/src/core/UserFollowingService.ts +++ b/packages/backend/src/core/UserFollowingService.ts @@ -230,8 +230,7 @@ export class UserFollowingService implements OnModuleInit { // 通知を作成 this.notificationService.createNotification(follower.id, 'followRequestAccepted', { - notifierId: followee.id, - }); + }, followee.id); } if (alreadyFollowed) return; @@ -304,8 +303,7 @@ export class UserFollowingService implements OnModuleInit { // 通知を作成 this.notificationService.createNotification(followee.id, 'follow', { - notifierId: follower.id, - }); + }, follower.id); } } @@ -488,9 +486,8 @@ export class UserFollowingService implements OnModuleInit { // 通知を作成 this.notificationService.createNotification(followee.id, 'receiveFollowRequest', { - notifierId: follower.id, followRequestId: followRequest.id, - }); + }, follower.id); } if (this.userEntityService.isLocalUser(follower) && this.userEntityService.isRemoteUser(followee)) { |