summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/stream/channels
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-04-01 10:12:59 -0400
committerHazelnoot <acomputerdog@gmail.com>2025-04-01 10:12:59 -0400
commit383633873dea318cb9783fc2228ddf6e7892350e (patch)
tree1fc22ef37bd701f5a68e1a9acc5b881792877894 /packages/backend/src/server/api/stream/channels
parentMerge branch 'misskey-develop' into merge/2025-03-24 (diff)
downloadsharkey-383633873dea318cb9783fc2228ddf6e7892350e.tar.gz
sharkey-383633873dea318cb9783fc2228ddf6e7892350e.tar.bz2
sharkey-383633873dea318cb9783fc2228ddf6e7892350e.zip
fix backend type errors
Diffstat (limited to 'packages/backend/src/server/api/stream/channels')
-rw-r--r--packages/backend/src/server/api/stream/channels/chat-room.ts6
-rw-r--r--packages/backend/src/server/api/stream/channels/chat-user.ts6
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,
);
}
}