pass NoteEntityService through Channel constructor instead of method args
This commit is contained in:
@@ -24,12 +24,12 @@ class GlobalTimelineChannel 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);
|
||||
//this.onNote = this.onNote.bind(this);
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ class GlobalTimelineChannel 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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user