# ActivityPub 插件

**URL:** https://meta.discourse.org/t/activitypub-plugin/266794
**Category:** Plugin
**Tags:** experimental, activitypub
**Created:** [2023年五月31日 17:21 UTC](https://meta.discourse.org/t/activitypub-plugin/266794 "2023-05-31T17:21:52Z")
**Posts on this page:** 1
**Showing post:** 451

<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: [2025年五月16日 10:16 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/451 "2025-05-16T10:16:24Z")

</div>

> [@Olle11](#):
>
> 如何隐藏侧边栏中的 Activityhub/Federation？

我认为插件添加的那些在自定义侧边栏方面仍然有些不灵活。我认为这仍然是推荐的做法：

> [@Moin](#):
>
> #### 处理插件添加的链接
> 
> 插件添加的链接无法直接自定义。要修改这些链接：
> 
> 1. 创建一个具有所需自定义设置的替换链接
> 2. 隐藏原始插件链接
> 
> 某些链接可以在插件的设置中隐藏。例如，可以通过禁用 `sidebar_show_upcoming_events` 设置来隐藏即将发生的事件链接。  
> 如果不存在隐藏链接的设置，您可以使用 CSS 来删除它。例如，以下 CSS 代码片段，最初在[此主题](https://meta.discourse.org/t/replace-discourses-default-svg-icons-with-custom-icons-in-a-theme/115736/38)中分享，可以隐藏 Docs 插件添加的链接：
> 
> ```css
> .sidebar-section-wrapper {
> li[data-list-item-name=docs] {
> display: none !important;
> }
> }
> 
> ```

---

_[View the full topic](https://meta.discourse.org/t/activitypub-plugin/266794)._
