# Трудности с пониманием настройки включения приветственного баннера

**URL:** <https://meta.discourse.org/t/difficulty-understanding-the-enable-welcome-banner-setting/377321>\
**Category:** Support\
**Tags:** theme-site-settings\
**Created:** [05.Август.2025 06:47:39 UTC](https://meta.discourse.org/t/difficulty-understanding-the-enable-welcome-banner-setting/377321 "2025-08-05T06:47:39Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)\
**Post date:** [06.Август.2025 01:38:43 UTC](https://meta.discourse.org/t/difficulty-understanding-the-enable-welcome-banner-setting/377321/9 "2025-08-06T01:38:43Z")

</div>

Странно, что это сохраняется даже после обновления в приложении 🤔 Когда мы сохраняем эти значения на сервере, мы отправляем сообщение MessageBus клиенту здесь, что должно обновить реактивный UI:

> <https://github.com/discourse/discourse/blob/73d27587aa8a3e1dda2756c9e0b92b4a50804f68/app/assets/javascripts/discourse/app/instance-initializers/subscribe-user-notifications.js#L260-L271>

Но кажется, что где-то ваши настройки перепутали true/false? Что вы увидите, если выполните это в rails console для вашего сайта?

```ruby
SiteSetting.theme_site_settings

```

Вы увидите что-то вроде этого, числа обозначают ID темы:

```ruby
{1=>{:enable_welcome_banner=>false, :search_experience=>"search_icon"},
 -1=>{:enable_welcome_banner=>false, :search_experience=>"search_icon"},
 -2=>{:enable_welcome_banner=>false, :search_experience=>"search_field"}}

```

Попробуйте переключить значение и посмотреть, какие значения появятся (после каждого изменения значения вам нужно будет закрывать и снова открывать rails console).

Затем попробуйте выполнить следующее:

```ruby
SiteSetting.theme_site_settings_json(THEME_ID)

```

Замените THEME\_ID на тот, который вызывает проблемы.

Редактирование: Ах, я не понял, что это хостинговый сайт, я могу посмотреть 👀

---

_[View the full topic](https://meta.discourse.org/t/difficulty-understanding-the-enable-welcome-banner-setting/377321)._
