summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/stream/channels/bubble-timeline.ts
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-02-25 20:52:14 -0500
committerHazelnoot <acomputerdog@gmail.com>2025-02-25 20:52:14 -0500
commit019e60d9a43fc442252cb3ecb0e86b3d425ae37d (patch)
tree8c7648e59727306efdde1bf9066ef30e06a78950 /packages/backend/src/server/api/stream/channels/bubble-timeline.ts
parentcheck mutes and blocks of renote target in streaming API (diff)
downloadsharkey-019e60d9a43fc442252cb3ecb0e86b3d425ae37d.tar.gz
sharkey-019e60d9a43fc442252cb3ecb0e86b3d425ae37d.tar.bz2
sharkey-019e60d9a43fc442252cb3ecb0e86b3d425ae37d.zip
pass NoteEntityService through Channel constructor instead of method args
Diffstat (limited to 'packages/backend/src/server/api/stream/channels/bubble-timeline.ts')
-rw-r--r--packages/backend/src/server/api/stream/channels/bubble-timeline.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/backend/src/server/api/stream/channels/bubble-timeline.ts b/packages/backend/src/server/api/stream/channels/bubble-timeline.ts
index 6b6aa80797..c33245ef1e 100644
--- a/packages/backend/src/server/api/stream/channels/bubble-timeline.ts
+++ b/packages/backend/src/server/api/stream/channels/bubble-timeline.ts
@@ -26,12 +26,12 @@ class BubbleTimelineChannel extends Channel {
constructor(
private metaService: MetaService,
private roleService: RoleService,
- private noteEntityService: NoteEntityService,
+ noteEntityService: NoteEntityService,
id: string,
connection: Channel['connection'],
) {
- super(id, connection);
+ super(id, connection, noteEntityService);
}
@bindThis
@@ -63,7 +63,7 @@ class BubbleTimelineChannel extends Channel {
if (this.isNoteMutedOrBlocked(note)) return;
- const clonedNote = await this.assignMyReaction(note, this.noteEntityService);
+ const clonedNote = await this.assignMyReaction(note);
this.connection.cacheNote(clonedNote);