mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-02 08:13:47 +08:00
**Previously**, the nested replies view (`/n/:slug/:id`) was missing the Suggested/Related Topics widget. The backend was still serializing `suggested_topics`/`related_topics` on every initial page-0 response — running the core suggested-topics query and the discourse-ai embedding similarity query — but the frontend never rendered the data, so the cost was entirely wasted. **In this update**, `<MoreTopics>` now renders at the end of the nested view, and the payload piggybacks `suggested_topics`/`related_topics` only on whichever response has `has_more_roots: false` — mirroring the flat view's lazy-load contract so the embedding query runs once, when the reader has paginated through all roots. |
||
|---|---|---|
| .. | ||
| ancestor_walker.rb | ||
| post_preloader.rb | ||
| post_tree_serializer.rb | ||
| sort.rb | ||
| tree_loader.rb | ||