A platform for community discussion. Free, open, simple.
FIX: Preserve topic metadata in nested reply view (#41883)
Mark VanLandingham384d79895302
diff --git a/frontend/discourse/app/components/nested.gjs b/frontend/discourse/app/components/nested.gjsindex ee1a4183ac9..84693b3f52a 100644--- a/frontend/discourse/app/components/nested.gjs+++ b/frontend/discourse/app/components/nested.gjs@@ -663,7 +663,9 @@ export default class Nested extends Component {<template><div+ id="topic"class={{this.viewClass}}+ data-topic-id={{@topic.id}}{{didInsert this.scheduleTargetScroll}}{{didInsert this.restoreStoredScrollAnchor}}{{didUpdate this.scheduleTargetScroll @targetPostNumber @rootNodes}}diff --git a/frontend/discourse/app/components/nested/op.gjs b/frontend/discourse/app/components/nested/op.gjsindex b176dbbeba7..24a583fae02 100644--- a/frontend/discourse/app/components/nested/op.gjs+++ b/frontend/discourse/app/components/nested/op.gjs@@ -136,6 +136,7 @@ export default class NestedOp extends Component {}}data-post-id={{@post.id}}data-post-number={{@post.post_number}}+ data-topic-id={{@topic.id}}{{@registerPost @post}}><PluginOutletdiff --git a/frontend/discourse/app/components/nested/post.gjs b/frontend/discourse/app/components/nested/post.gjsindex 2ee2373c8f2..5fc631aca1b 100644--- a/frontend/discourse/app/components/nested/post.gjs+++ b/frontend/discourse/app/components/nested/post.gjs@@ -748,6 +748,7 @@ export default class NestedPost extends Component {class="nested-post__article boxed"data-post-id={{@post.id}}data-post-number={{@post.post_number}}+ data-topic-id={{@topic.id}}{{@registerPost @post trackOnly=true}}><PluginOutlet