# 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:** 20
**Page:** 22

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [2025年三月27日 08:12 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/431 "2025-03-27T08:12:11Z")

</div>

@icaria36 @Melmel 感谢您的反馈和想法！非常感激。我很快会跟进更多细节。

---

<div class="post-metadata">

### Author: ![icaria36](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/icaria36/32/426431_2.png) [@icaria36](https://meta.discourse.org/u/icaria36)
#### Post date: [2025年四月3日 09:29 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/432 "2025-04-03T09:29:37Z")

</div>

`Job exception: undefined method skip_email_validation= for an instance of Tag`

我们收到了很多这类错误。我不知道这是否与 [ActivityPub Plugin - #359 by Jagster](https://meta.discourse.org/t/activitypub-plugin/266794/359?u=icaria36) 的问题相同，但由于它提到了 Tag，我认为报告一下总没有坏处。

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [2025年四月4日 08:33 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/433 "2025-04-04T08:33:48Z")

</div>

此 PR 应能解决该异常。

> <https://github.com/discourse/discourse-activity-pub/pull/208>
>
> @pmusaraj Reference: https://meta.discourse.org/t/activitypub-plugin/266794/432?…u=angus

请注意，此异常实际上并未对您的实例产生任何实质性影响。

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [2025年四月7日 08:25 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/434 "2025-04-07T08:25:26Z")

</div>

帖子已拆分为新主题：[关注本地 ActivityPub 参与者](https://meta.discourse.org/t/follow-local-activitypub-actors/360688)

---

<div class="post-metadata">

### Author: ![yaxu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yaxu/32/178942_2.png) [@yaxu](https://meta.discourse.org/u/yaxu)
#### Post date: [2025年四月12日 08:30 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/435 "2025-04-12T08:30:58Z")

</div>

感谢这个很棒的插件！

我有一个多站点 Discourse 安装，运行着最新的 Discourse 更新。ActivityPub 似乎在一个站点（[https://forum.toplap.org/）上运行良好，但在另一个站点（https://club.tidalcycles.org/）上却不行。](https://forum.toplap.org/%EF%BC%89%E4%B8%8A%E8%BF%90%E8%A1%8C%E8%89%AF%E5%A5%BD%EF%BC%8C%E4%BD%86%E5%9C%A8%E5%8F%A6%E4%B8%80%E4%B8%AA%E7%AB%99%E7%82%B9%EF%BC%88https://club.tidalcycles.org/%EF%BC%89%E4%B8%8A%E5%8D%B4%E4%B8%8D%E8%A1%8C%E3%80%82)

在后者上，帖子的内容丢失了，只有标题和帖子的链接，例如：

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/c/d/4cd8ad37ca7565b3e71e4f7521611941a89923c4.png)

我比较了两个站点的设置，它们是相同的。我查看了几个不同的 Mastodon 服务器（包括 mastodon.social），它们都显示相同的问题。

插件设置是默认的，除了开启了详细日志记录。

我尝试了 ‘note’ 和 ‘article’ 作为对象类型。

我对此感到困惑——有什么建议可能是什么出了问题吗？

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [2025年四月15日 08:33 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/436 "2025-04-15T08:33:23Z")

</div>

嘿 @yaxu，我的第一个想法是，在 `club.tidalcycles.org` 上，你正在联合 `Article`，因为 `Article` 目前在 Mastodon 上就是这样显示的。你能分享一下与你分享的截图相关联的 Discourse Actor 的设置截图吗？

---

<div class="post-metadata">

### Author: ![yaxu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yaxu/32/178942_2.png) [@yaxu](https://meta.discourse.org/u/yaxu)
#### Post date: [2025年四月21日 12:38 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/437 "2025-04-21T12:38:02Z")

</div>

谢谢 @angus，我真的以为我测试了 Note 和 Article，但我一定是弄错了——把它切换回 Note 后，现在一切正常了。

---

<div class="post-metadata">

### Author: ![icaria36](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/icaria36/32/426431_2.png) [@icaria36](https://meta.discourse.org/u/icaria36)
#### Post date: [2025年四月29日 13:02 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/438 "2025-04-29T13:02:04Z")

</div>

> [@icaria36](#):
>
> 我缺少置顶帖的等效图标和链接。它可能就在某个显眼的地方，但我找不到。🤓

例如，我想从我的 Mastodon 帐户点赞 [https://meta.discourse.org/t/support-for-activitypub-tags/363970，但我找不到方法。](https://meta.discourse.org/t/support-for-activitypub-tags/363970%EF%BC%8C%E4%BD%86%E6%88%91%E6%89%BE%E4%B8%8D%E5%88%B0%E6%96%B9%E6%B3%95%E3%80%82)

---

<div class="post-metadata">

### Author: ![icaria36](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/icaria36/32/426431_2.png) [@icaria36](https://meta.discourse.org/u/icaria36)
#### Post date: [2025年五月4日 08:24 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/439 "2025-05-04T08:24:26Z")

</div>

在一个 Discourse 实例中，我们为仅限第一篇帖子的标签设置了一个 ActivityPub 角色，且使用该标签的新话题会自动联邦。

在另一个 Discourse 实例中，我们为各种类别设置了多个 ActivityPub 角色，范围是所有帖子，但……新话题不会自动联邦。它们需要在每个话题的管理对话框中手动进行联邦。

我已经检查了设置，并且相信两个 Discourse 实例的设置是相同的。你知道发生了什么吗？我们如何才能让所有新话题都自动联邦？

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [2025年五月7日 06:03 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/440 "2025-05-07T06:03:33Z")

</div>

嘿 @icaria36，你能分享一个没有自动联合的新的话题的具体例子吗？如果可以的话，请分享：

1. 角色的详细信息和设置。
2. 类别的链接。
3. 在该类别中创建新话题的方式。
4. 该实例的相关日志。
5. 你在该实例中使用的其他插件的详细信息。

---

<div class="post-metadata">

### Author: ![icaria36](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/icaria36/32/426431_2.png) [@icaria36](https://meta.discourse.org/u/icaria36)
#### Post date: [2025年五月7日 06:49 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/441 "2025-05-07T06:49:20Z")

</div>

我可以提供所有这些细节，但你的问题让我觉得问题可能在于由#rss-polling插件自动创建的主题——而非手动创建的主题。这会是问题所在吗？

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [2025年五月7日 19:38 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/442 "2025-05-07T19:38:49Z")

</div>

如果我通过插件 \> 编辑演员 设置了用户名，是否有办法在 Mastodon 中访问这个用户名，以便删除、编辑和添加帖子，还是所有操作都将在 Discourse 中管理？

我采用自托管，因此用户名与我的论坛网址关联，而没有连接到任何现有的 Mastodon 服务器。

我看到在 Mastodon 上创建了一个新的演员，是应该将其视为一个标签（hashtag）而不是账户，并通过 Discourse 来管理吗？

此致  
奥莱

---

<div class="post-metadata">

### Author: ![JonahAragon1](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@JonahAragon1](https://meta.discourse.org/u/JonahAragon1)
#### Post date: [2025年五月8日 23:35 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/443 "2025-05-08T23:35:30Z")

</div>

是否可以将帖子与基于默认区域设置站点设置的语言共享，而不是“无”，这样“翻译”按钮就不会显示在每个 Mastodon 帖子下方？（如果他们不提供翻译“无”语言，可能会更好，但不管怎样）

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [2025年五月9日 06:39 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/444 "2025-05-09T06:39:51Z")

</div>

> [@icaria36](#):
>
> 你的问题让我觉得，也许问题出在由 #rss-polling 插件自动创建的议题上——而不是手动创建的议题。这可能是问题所在吗？

是的，这应该是原因所在。ActivityPub 插件目前不支持与 RSS 轮询插件的自动集成。

> [@Olle11](#):
>
> 如果我通过插件 \> 编辑 actor 设置了一个用户名，有没有办法通过 Mastodon 访问这个用户名，以便在那里删除、编辑和添加帖子，还是所有管理都将在 Discourse 中进行？

你只能在 Discourse 中管理该 actor。Mastodon 服务器上的该 actor 副本应更新以反映你在 Discourse 中所做的更改。

> [@JonahAragon1](#):
>
> 能否根据默认的区域设置站点设置来设置帖子共享的语言，而不是 `None`，这样就不会在每个 Mastodon 帖子下方显示“翻译”按钮？（如果它们不提示翻译 `None` 语言可能会更好，但无所谓）

能否创建一个新的 #Contribute > Feature 议题，详细描述你希望在该插件中看到的支持区域设置的特性，并标记为 #activitypub？谢谢！

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [2025年五月9日 06:50 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/445 "2025-05-09T06:50:49Z")

</div>

我明白了，有没有办法让链接由 actor 来验证？目前搜索 actor 时显示它们未经验证。也许 actor 需要从 Mastodon 创建才能获得经验证的链接。

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [2025年五月13日 10:47 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/446 "2025-05-13T10:47:58Z")

</div>

我也想知道是否有办法在主题中隐藏“主题未通过ActivityPub发布。”

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2025年五月13日 13:05 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/447 "2025-05-13T13:05:47Z")

</div>

如果你非得这样做，可以用CSS定位该元素并隐藏，`.activity-pub-topic-status.not-published`会将范围缩小到仅“未发布”的状态。但通常来说，我会保留那个信息。它是有帮助的状态，只在具有ActivityPub功能的类别/标签的话题上显示。

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [2025年五月13日 23:47 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/448 "2025-05-13T23:47:04Z")

</div>

好的，谢谢。

有没有办法像在 Activitypub 上看到的那样验证 actor？目前搜索 actor 时显示他们未经验证。

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [2025年五月14日 04:57 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/449 "2025-05-14T04:57:56Z")

</div>

Discourse 的用户不是可以被关注的真正参与者。只有分类和标签可以。至少目前是这样。

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [2025年五月15日 12:33 UTC](https://meta.discourse.org/t/activitypub-plugin/266794/450 "2025-05-15T12:33:11Z")

</div>

这说得通，

如何从侧边栏隐藏 Activityhub/Federation？

[上一頁](https://meta.discourse.org/t/activitypub-plugin/266794.md?page=21)

[下一頁](https://meta.discourse.org/t/activitypub-plugin/266794.md?page=23)
