summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/endpoints/clips/notes.ts
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-06-01 17:25:52 +0000
committerHazelnoot <acomputerdog@gmail.com>2025-06-01 17:25:52 +0000
commite1504cfb88d047acbfc5c08bcf790c0a08875ee9 (patch)
tree074df46515fd4ddd4a6bdf7b0a1af57fcb663291 /packages/backend/src/server/api/endpoints/clips/notes.ts
parentmerge: fix DeepLX (!1077) (diff)
parentexclude local notes from bubble timeline (diff)
downloadsharkey-e1504cfb88d047acbfc5c08bcf790c0a08875ee9.tar.gz
sharkey-e1504cfb88d047acbfc5c08bcf790c0a08875ee9.tar.bz2
sharkey-e1504cfb88d047acbfc5c08bcf790c0a08875ee9.zip
merge: Persisted instance blocks (!1068)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1068 Approved-by: dakkar <dakkar@thenautilus.net> Approved-by: Marie <github@yuugi.dev>
Diffstat (limited to 'packages/backend/src/server/api/endpoints/clips/notes.ts')
-rw-r--r--packages/backend/src/server/api/endpoints/clips/notes.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/backend/src/server/api/endpoints/clips/notes.ts b/packages/backend/src/server/api/endpoints/clips/notes.ts
index 59513e530d..4758dbad00 100644
--- a/packages/backend/src/server/api/endpoints/clips/notes.ts
+++ b/packages/backend/src/server/api/endpoints/clips/notes.ts
@@ -92,10 +92,11 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
.andWhere('clipNote.clipId = :clipId', { clipId: clip.id });
this.queryService.generateBlockedHostQueryForNote(query);
+ this.queryService.generateVisibilityQuery(query, me);
if (me) {
- this.queryService.generateVisibilityQuery(query, me);
this.queryService.generateMutedUserQueryForNotes(query, me);
this.queryService.generateBlockedUserQueryForNotes(query, me);
+ this.queryService.generateMutedUserRenotesQueryForNotes(query, me);
}
const notes = await query