pass NoteEntityService through Channel constructor instead of method args
This commit is contained in:
parent
de3c9124cd
commit
019e60d9a4
18 changed files with 60 additions and 37 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue