# Рекламе нужно много места в темах с вложенными ответами

**URL:** https://meta.discourse.org/t/ads-need-a-lot-of-space-on-topics-with-nested-replies/404917
**Category:** Bug
**Tags:** nested-replies
**Created:** [10.Июнь.2026 06:44:58 UTC](https://meta.discourse.org/t/ads-need-a-lot-of-space-on-topics-with-nested-replies/404917 "2026-06-10T06:44:58Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [11.Июнь.2026 14:15:05 UTC](https://meta.discourse.org/t/ads-need-a-lot-of-space-on-topics-with-nested-replies/404917/3 "2026-06-11T14:15:05Z")

</div>

Ахаха, я, как и ты с тегом #advertising, думал, что это обрабатывается через [Discourse Advertising Plugin (Ads)](https://meta.discourse.org/t/discourse-advertising-plugin-ads/33734), и потратил слишком много времени на возню там, но оказалось, что это обрабатывается с помощью [GitHub - discourse/discourse-custom-topic-list-ads-component · GitHub](https://github.com/discourse/discourse-custom-topic-list-ads-component).

:facepalm:

С этим разобрались, вот исправления

> <https://github.com/discourse/discourse-custom-topic-list-ads-component/pull/25>
>
> Previously, the between-posts ad was rendered through the \`post-article\` wrapper… outlet, which the nested replies view renders for the OP and for every reply at every depth — so ads appeared inside the OP card and scattered throughout the reply tree, gated by \`post\_number\`, which does not reflect display order in that view.
> 
> This change skips the between-posts ad in the nested replies view (via \`shouldRender\` on the \`nestedReplyView\` outlet arg) and adds an \`AdBetweenNestedRoots\` component rendered in the core \`nested-roots-between\` outlet, which shows an ad after every \`show\_between\_posts\` top-level replies instead.
> 
> On Discourse versions without the \`nested-roots-between\` outlet the new component never renders, and the regular topic view is unchanged.

> <https://github.com/discourse/discourse-custom-topic-list-ads-component/pull/26>
>
> Previously, ads between top-level replies in the nested replies view reused \`sho…w\_between\_posts\`, but that cadence counts all posts in the classic view while only roots count in the nested view — with \`show\_between\_posts: 15\`, a topic with hundreds of posts but few top-level replies showed barely any ads.
> 
> This change adds a \`show\_between\_nested\_roots\` setting (default 5) so the nested view cadence can be tuned independently, with 0 disabling nested-view ads.
> 
> Follow-up to #25.

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/8/3/18350ae99dfcbdd16a8835bf50db3a18e8ed15b5.jpeg)

---

_[View the full topic](https://meta.discourse.org/t/ads-need-a-lot-of-space-on-topics-with-nested-replies/404917)._
