diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-05-30 14:39:37 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-05-30 14:39:37 -0400 |
| commit | 9c4e3934d1c79c76448568730b765bcefde0669e (patch) | |
| tree | 760b20094a43889a6ca7a0b64ac28125e8ae7dc6 /packages/backend/src/server/api/endpoints | |
| parent | use more robust fixup in 1748128176881-add_instance_foreign_keys.js (diff) | |
| download | sharkey-9c4e3934d1c79c76448568730b765bcefde0669e.tar.gz sharkey-9c4e3934d1c79c76448568730b765bcefde0669e.tar.bz2 sharkey-9c4e3934d1c79c76448568730b765bcefde0669e.zip | |
exclude local notes from bubble timeline
Diffstat (limited to 'packages/backend/src/server/api/endpoints')
| -rw-r--r-- | packages/backend/src/server/api/endpoints/notes/bubble-timeline.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/backend/src/server/api/endpoints/notes/bubble-timeline.ts b/packages/backend/src/server/api/endpoints/notes/bubble-timeline.ts index be08f84b6b..7c375cb0f5 100644 --- a/packages/backend/src/server/api/endpoints/notes/bubble-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/bubble-timeline.ts @@ -85,7 +85,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate) .andWhere('note.visibility = \'public\'') .andWhere('note.channelId IS NULL') - .andWhere('(note.userHost IS NULL OR userInstance.isBubbled = true)') // This comes from generateVisibilityQuery below + .andWhere('note.userHost IS NULL') + .andWhere('userInstance.isBubbled = true') // This comes from generateVisibilityQuery below .innerJoinAndSelect('note.user', 'user') .leftJoinAndSelect('note.reply', 'reply') .leftJoinAndSelect('note.renote', 'renote') |