# ActivityPub：是否可以在命令行中重置类别句柄？

**URL:** https://meta.discourse.org/t/activitypub-reset-category-handle-in-cli/286743
**Category:** Support
**Tags:** activitypub
**Created:** [2023年十一月27日 16:14 UTC](https://meta.discourse.org/t/activitypub-reset-category-handle-in-cli/286743 "2023-11-27T16:14:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Thomas\_Rother](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_rother/32/423597_2.png) [@Thomas\_Rother](https://meta.discourse.org/u/Thomas_Rother)
#### Post date: [2023年十一月27日 16:14 UTC](https://meta.discourse.org/t/activitypub-reset-category-handle-in-cli/286743/1 "2023-11-27T16:14:24Z")

</div>

您好，

我目前正在设置一个新的 discourse 实例，并在 ActivityPub 类别句柄（WebFinger 资源）中使用了错误的字符串。由于无法在插件的用户界面中重置此设置：是否可以在命令行中更改错误的句柄？

---

<div class="post-metadata">

### Author: ![Thomas\_Rother](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_rother/32/423597_2.png) [@Thomas\_Rother](https://meta.discourse.org/u/Thomas_Rother)
#### Post date: [2023年十二月6日 22:09 UTC](https://meta.discourse.org/t/activitypub-reset-category-handle-in-cli/286743/2 "2023-12-06T22:09:49Z")

</div>

-友好提醒-

有人知道在输入错误的情况下如何重置 ActivityPub webfinger 句柄吗？ 是否有任何方法可以直接在 postgres 数据库中更改它？

 ![grafik](https://global.discourse-cdn.com/meta/original/4X/e/6/9/e69afb6112f1968b6e0ce4e95925155b10e9b7c1.png)

---

<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: [2023年十二月7日 09:27 UTC](https://meta.discourse.org/t/activitypub-reset-category-handle-in-cli/286743/5 "2023-12-07T09:27:32Z")

</div>

嘿 @Thomas_Rother，很高兴看到您正在试用 ActivityPub 插件！不幸的是，目前无法更改用户名（类似于您无法在 Mastodon 上更改用户名），这就是我们在您截图所见处添加了警告的原因。

我不建议直接在数据库或 Rails 控制台中尝试更改它。不过，我们很快就会考虑添加此功能。我当然明白这是可取的，尤其是在您遇到的情况下。我们需要尝试缓解任何未预料到的问题（即，我们需要彻底测试该场景）。

---

<div class="post-metadata">

### Author: ![Thomas\_Rother](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_rother/32/423597_2.png) [@Thomas\_Rother](https://meta.discourse.org/u/Thomas_Rother)
#### Post date: [2023年十二月7日 14:07 UTC](https://meta.discourse.org/t/activitypub-reset-category-handle-in-cli/286743/6 "2023-12-07T14:07:37Z")

</div>

谢谢 Angus 快速回复。没问题，那我们就等补丁吧 😉
