diff options
Diffstat (limited to 'packages/backend/src/server/api/stream')
| -rw-r--r-- | packages/backend/src/server/api/stream/channels/chat-room.ts | 6 | ||||
| -rw-r--r-- | packages/backend/src/server/api/stream/channels/chat-user.ts | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/packages/backend/src/server/api/stream/channels/chat-room.ts b/packages/backend/src/server/api/stream/channels/chat-room.ts index eda333dd30..648e407569 100644 --- a/packages/backend/src/server/api/stream/channels/chat-room.ts +++ b/packages/backend/src/server/api/stream/channels/chat-room.ts @@ -8,6 +8,7 @@ import { bindThis } from '@/decorators.js'; import type { GlobalEvents } from '@/core/GlobalEventService.js'; import type { JsonObject } from '@/misc/json-value.js'; import { ChatService } from '@/core/ChatService.js'; +import { NoteEntityService } from '@/core/entities/NoteEntityService.js'; import Channel, { type MiChannelService } from '../channel.js'; class ChatRoomChannel extends Channel { @@ -22,8 +23,9 @@ class ChatRoomChannel extends Channel { id: string, connection: Channel['connection'], + noteEntityService: NoteEntityService, ) { - super(id, connection); + super(id, connection, noteEntityService); } @bindThis @@ -64,6 +66,7 @@ export class ChatRoomChannelService implements MiChannelService<true> { constructor( private chatService: ChatService, + private readonly noteEntityService: NoteEntityService, ) { } @@ -73,6 +76,7 @@ export class ChatRoomChannelService implements MiChannelService<true> { this.chatService, id, connection, + this.noteEntityService, ); } } diff --git a/packages/backend/src/server/api/stream/channels/chat-user.ts b/packages/backend/src/server/api/stream/channels/chat-user.ts index 5323484ed7..b37aef29d1 100644 --- a/packages/backend/src/server/api/stream/channels/chat-user.ts +++ b/packages/backend/src/server/api/stream/channels/chat-user.ts @@ -8,6 +8,7 @@ import { bindThis } from '@/decorators.js'; import type { GlobalEvents } from '@/core/GlobalEventService.js'; import type { JsonObject } from '@/misc/json-value.js'; import { ChatService } from '@/core/ChatService.js'; +import { NoteEntityService } from '@/core/entities/NoteEntityService.js'; import Channel, { type MiChannelService } from '../channel.js'; class ChatUserChannel extends Channel { @@ -22,8 +23,9 @@ class ChatUserChannel extends Channel { id: string, connection: Channel['connection'], + noteEntityService: NoteEntityService, ) { - super(id, connection); + super(id, connection, noteEntityService); } @bindThis @@ -64,6 +66,7 @@ export class ChatUserChannelService implements MiChannelService<true> { constructor( private chatService: ChatService, + private readonly noteEntityService: NoteEntityService, ) { } @@ -73,6 +76,7 @@ export class ChatUserChannelService implements MiChannelService<true> { this.chatService, id, connection, + this.noteEntityService, ); } } |