# 侧边栏中有两个社区版块

**URL:** <https://meta.discourse.org/t/two-community-sections-in-the-sidebar/263907>\
**Category:** Bug\
**Tags:** sidebar\
**Created:** [2023年五月5日 01:11 UTC](https://meta.discourse.org/t/two-community-sections-in-the-sidebar/263907 "2023-05-05T01:11:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)\
**Post date:** [2023年五月5日 01:11 UTC](https://meta.discourse.org/t/two-community-sections-in-the-sidebar/263907/1 "2023-05-05T01:11:58Z")

</div>

最近的一次更新在侧边栏的自定义链接部分添加了社区部分，但似乎忘记了在功能完全开发之前隐藏它们。

 ![IMG_20230505_090448](https://global.discourse-cdn.com/meta/original/4X/1/8/3/183917be7c46ad59c129f74185ef1c4eb4aec85b.jpeg)

---

<div class="post-metadata">

**Author:** ![kris.kotlarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kris.kotlarek/32/176919_2.png) [@kris.kotlarek](https://meta.discourse.org/u/kris.kotlarek)\
**Post date:** [2023年五月5日 01:47 UTC](https://meta.discourse.org/t/two-community-sections-in-the-sidebar/263907/2 "2023-05-05T01:47:56Z")

</div>

感谢您报告此问题。

您的论坛是公开的吗？您能给我一个地址吗？这将有助于我调试出问题所在。

---

<div class="post-metadata">

**Author:** ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)\
**Post date:** [2023年五月5日 03:03 UTC](https://meta.discourse.org/t/two-community-sections-in-the-sidebar/263907/3 "2023-05-05T03:03:19Z")

</div>

感谢 @kris.kotlarek 的帮助，我的论坛已解决此问题；我无法提供此 bug 如何发生的详细信息，只能说明我是如何遇到的：

- 以站点管理员身份登录（我的 `user.id = 1`）

- 在更新前添加一个全局侧边栏部分；

- 更新 discourse-docker-manager（from\_version: ad743ae11d4727847ec7666fc931f4914769349a）

- 使用 discourse-docker-manager 更新论坛。

```plaintext
from_version: f47a4e61ad8e61dd75efac7acdc9e03c94379643, f99b3af7ed4a21474f35223e83013ee3e8ad7002
repository: /var/www/discourse, /var/www/discourse/plugins/discourse-data-explorer

```

关于 bug 的可能信息：

- 检查了数据库，发现新的侧边栏部分的 user\_id 指向了我（id: 1），而不是 system\_user（id: -1）
- 将社区部分的 `user_id` 重置为 `-1` 解决了问题。

如果有人能重现此 bug，也许以上步骤会有帮助。

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2023年七月4日 06:59 UTC](https://meta.discourse.org/t/two-community-sections-in-the-sidebar/263907/4 "2023-07-04T06:59:34Z")

</div>


