# Discourse Activitypub gives 502 after rebuilding

**URL:** <https://meta.discourse.org/t/discourse-activitypub-gives-502-after-rebuilding/412982>\
**Category:** Bug\
**Tags:** activitypub, fixed\
**Created:** [September 22, 2026, 8:57am UTC](https://meta.discourse.org/t/discourse-activitypub-gives-502-after-rebuilding/412982 "2026-09-22T08:57:17Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [September 22, 2026, 2:39pm UTC](https://meta.discourse.org/t/discourse-activitypub-gives-502-after-rebuilding/412982/6 "2026-09-22T14:39:12Z")

</div>

@pmusaraj I checked this against Rails 8.0.5.1 and 8.1.3.1. A compatibility entry shouldn’t be needed: the corrected association works on both versions. The previous declaration fails to load on Rails 8.1 because it specifies `class_name` alongside `polymorphic: true`.

The initial report was posted about ~15 minutes before the fix merged, so it could have been from a rebuild without the fix.

@Jagster @satonotdead could you try rebuilding again with ActivityPub enabled? If you still get a 502, please share error log from `/logs`.

---

_[View the full topic](https://meta.discourse.org/t/discourse-activitypub-gives-502-after-rebuilding/412982)._
