mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 09:34:50 +08:00
FIX: updated filtered replies when replies exist (#16610)
This commit is contained in:
parent
f219ea562f
commit
96e7c85177
|
@ -436,8 +436,11 @@ createWidget("post-contents", {
|
||||||
if (this.siteSettings.enable_filtered_replies_view) {
|
if (this.siteSettings.enable_filtered_replies_view) {
|
||||||
const topicController = this.register.lookup("controller:topic");
|
const topicController = this.register.lookup("controller:topic");
|
||||||
|
|
||||||
|
if (attrs.post_number) {
|
||||||
defaultState.filteredRepliesShown =
|
defaultState.filteredRepliesShown =
|
||||||
topicController.replies_to_post_number === attrs.post_number.toString();
|
topicController.replies_to_post_number ===
|
||||||
|
attrs.post_number.toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return defaultState;
|
return defaultState;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user