# ActivityPub Plugin

**URL:** https://meta.discourse.org/t/activitypub-plugin/266794
**Category:** Plugin
**Tags:** experimental, activitypub
**Created:** [May 31, 2023, 5:21pm UTC](https://meta.discourse.org/t/activitypub-plugin/266794 "2023-05-31T17:21:52Z")
**Posts on this page:** 5
**Page:** 25

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [September 2, 2026, 3:47pm UTC](https://meta.discourse.org/t/activitypub-plugin/266794/494 "2026-09-02T15:47:15Z")

</div>

Hmm does that actually work? In my experience touching `Plugin::Instance` after initialize doesn’t go well.

---

<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: [September 2, 2026, 4:38pm UTC](https://meta.discourse.org/t/activitypub-plugin/266794/495 "2026-09-02T16:38:41Z")

</div>

It does, we use it in several places inside `after_initialize`, for example:

> <https://github.com/discourse/discourse/blob/main/plugins/chat/plugin.rb#L171>

The main issue is that other plugins or core cannot access the prepended method. In this case, the method is only accessed by the same plugin, later in the lifecycle.

---

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [September 8, 2026, 3:47pm UTC](https://meta.discourse.org/t/activitypub-plugin/266794/496 "2026-09-08T15:47:36Z")

</div>

Still broken on my machine. Same error.

---

<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: [September 8, 2026, 8:09pm UTC](https://meta.discourse.org/t/activitypub-plugin/266794/497 "2026-09-08T20:09:44Z")

</div>

Can you share the full backtrace from the failing build? I suspect something else is loading PrettyText before PrecompileBundle is available.

Please also share the core Discourse and ActivityPub commit hashes used by that build.

---

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [September 19, 2026, 4:50am UTC](https://meta.discourse.org/t/activitypub-plugin/266794/498 "2026-09-19T04:50:04Z")

</div>

I apologize. The problem was on my end. My [old mentions plugin](https://github.com/thoka/discourse-provide-full-name-in-mentions) was the culprit. Maybe I was too hasty when I enabled and disabled the plugins while searching for the bug’s cause.

[Previous page](https://meta.discourse.org/t/activitypub-plugin/266794.md?page=24)
