diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2023-12-02 19:32:30 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-02 19:32:30 +0900 |
| commit | 238e8ce93967c19d48e7b07c55d1faef4e64cb56 (patch) | |
| tree | 9e5ce9dabf229cfc855d8a9a1708ae659ccdffe8 /packages/backend/src/core | |
| parent | Refine fanout timeline (#12507) (diff) | |
| download | sharkey-238e8ce93967c19d48e7b07c55d1faef4e64cb56.tar.gz sharkey-238e8ce93967c19d48e7b07c55d1faef4e64cb56.tar.bz2 sharkey-238e8ce93967c19d48e7b07c55d1faef4e64cb56.zip | |
fix: Filter featured collection (#12541)
Diffstat (limited to 'packages/backend/src/core')
| -rw-r--r-- | packages/backend/src/core/NotePiningService.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/core/NotePiningService.ts b/packages/backend/src/core/NotePiningService.ts index 52abb4c2a1..74e53c5c46 100644 --- a/packages/backend/src/core/NotePiningService.ts +++ b/packages/backend/src/core/NotePiningService.ts @@ -77,7 +77,7 @@ export class NotePiningService { } as MiUserNotePining); // Deliver to remote followers - if (this.userEntityService.isLocalUser(user)) { + if (this.userEntityService.isLocalUser(user) && !note.localOnly && ['public', 'home'].includes(note.visibility)) { this.deliverPinnedChange(user.id, note.id, true); } } @@ -105,7 +105,7 @@ export class NotePiningService { }); // Deliver to remote followers - if (this.userEntityService.isLocalUser(user)) { + if (this.userEntityService.isLocalUser(user) && !note.localOnly && ['public', 'home'].includes(note.visibility)) { this.deliverPinnedChange(user.id, noteId, false); } } |