fix: "show replies in timeline" refactoring was not backward compatible

This commit is contained in:
naskya 2023-09-16 12:20:23 +09:00
parent 493971480c
commit d004df52be
No known key found for this signature in database
GPG key ID: 164DFF24E2D40139
5 changed files with 5 additions and 5 deletions

View file

@ -23,7 +23,7 @@ export default class extends Channel {
return;
}
this.withReplies = params.withReplies as boolean;
this.withReplies = params != null ? !!params.withReplies : true;
// Subscribe events
this.subscriber.on("notesStream", this.onNote);

View file

@ -16,7 +16,7 @@ export default class extends Channel {
}
public async init(params: any) {
this.withReplies = params.withReplies as boolean;
this.withReplies = params != null ? !!params.withReplies : true;
// Subscribe events
this.subscriber.on("notesStream", this.onNote);

View file

@ -25,7 +25,7 @@ export default class extends Channel {
)
return;
this.withReplies = params.withReplies as boolean;
this.withReplies = params != null ? !!params.withReplies : true;
// Subscribe events
this.subscriber.on("notesStream", this.onNote);

View file

@ -22,7 +22,7 @@ export default class extends Channel {
return;
}
this.withReplies = params.withReplies as boolean;
this.withReplies = params != null ? !!params.withReplies : true;
// Subscribe events
this.subscriber.on("notesStream", this.onNote);

View file

@ -25,7 +25,7 @@ export default class extends Channel {
)
return;
this.withReplies = params.withReplies as boolean;
this.withReplies = params != null ? !!params.withReplies : true;
// Subscribe events
this.subscriber.on("notesStream", this.onNote);