diff options
| author | GrapeApple0 <84321396+GrapeApple0@users.noreply.github.com> | 2023-11-09 21:35:07 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-09 21:35:07 +0900 |
| commit | 28e394eddc2b38db1bf2a5bf1059092fda8ce2a2 (patch) | |
| tree | 294d9fde8d9aafdd7ab6043e3ce9771f5f1da999 /packages/backend | |
| parent | fix: show real instance url (#12273) (diff) | |
| download | sharkey-28e394eddc2b38db1bf2a5bf1059092fda8ce2a2.tar.gz sharkey-28e394eddc2b38db1bf2a5bf1059092fda8ce2a2.tar.bz2 sharkey-28e394eddc2b38db1bf2a5bf1059092fda8ce2a2.zip | |
fix: 投稿通知がオンでもダイレクト投稿はユーザーに通知されないように (#12263)
* fix: 投稿通知がオンでもダイレクト投稿はユーザーに通知されないように
* Update CHANGELOG.md
Diffstat (limited to 'packages/backend')
| -rw-r--r-- | packages/backend/src/core/NoteCreateService.ts | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts index acd11a9fa7..86f220abd0 100644 --- a/packages/backend/src/core/NoteCreateService.ts +++ b/packages/backend/src/core/NoteCreateService.ts @@ -521,11 +521,13 @@ export class NoteCreateService implements OnApplicationShutdown { followeeId: user.id, notify: 'normal', }).then(followings => { - for (const following of followings) { - // TODO: ワードミュート考慮 - this.notificationService.createNotification(following.followerId, 'note', { - noteId: note.id, - }, user.id); + if (note.visibility !== 'specified') { + for (const following of followings) { + // TODO: ワードミュート考慮 + this.notificationService.createNotification(following.followerId, 'note', { + noteId: note.id, + }, user.id); + } } }); } |