fix: "show replies in timeline" refactoring was not backward compatible
This commit is contained in:
parent
493971480c
commit
d004df52be
@ -23,7 +23,7 @@ export default class extends Channel {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.withReplies = params.withReplies as boolean;
|
this.withReplies = params != null ? !!params.withReplies : true;
|
||||||
|
|
||||||
// Subscribe events
|
// Subscribe events
|
||||||
this.subscriber.on("notesStream", this.onNote);
|
this.subscriber.on("notesStream", this.onNote);
|
||||||
|
@ -16,7 +16,7 @@ export default class extends Channel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async init(params: any) {
|
public async init(params: any) {
|
||||||
this.withReplies = params.withReplies as boolean;
|
this.withReplies = params != null ? !!params.withReplies : true;
|
||||||
|
|
||||||
// Subscribe events
|
// Subscribe events
|
||||||
this.subscriber.on("notesStream", this.onNote);
|
this.subscriber.on("notesStream", this.onNote);
|
||||||
|
@ -25,7 +25,7 @@ export default class extends Channel {
|
|||||||
)
|
)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this.withReplies = params.withReplies as boolean;
|
this.withReplies = params != null ? !!params.withReplies : true;
|
||||||
|
|
||||||
// Subscribe events
|
// Subscribe events
|
||||||
this.subscriber.on("notesStream", this.onNote);
|
this.subscriber.on("notesStream", this.onNote);
|
||||||
|
@ -22,7 +22,7 @@ export default class extends Channel {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.withReplies = params.withReplies as boolean;
|
this.withReplies = params != null ? !!params.withReplies : true;
|
||||||
|
|
||||||
// Subscribe events
|
// Subscribe events
|
||||||
this.subscriber.on("notesStream", this.onNote);
|
this.subscriber.on("notesStream", this.onNote);
|
||||||
|
@ -25,7 +25,7 @@ export default class extends Channel {
|
|||||||
)
|
)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this.withReplies = params.withReplies as boolean;
|
this.withReplies = params != null ? !!params.withReplies : true;
|
||||||
|
|
||||||
// Subscribe events
|
// Subscribe events
|
||||||
this.subscriber.on("notesStream", this.onNote);
|
this.subscriber.on("notesStream", this.onNote);
|
||||||
|
Loading…
Reference in New Issue
Block a user