Skip to content

Node.js based forum software built for the modern web

fix: add deprecation note re: as:audience

Julian Lam3cf3f93a5e1c
diff --git a/src/activitypub/mocks.js b/src/activitypub/mocks.js
index e2ea398731..95274fae89 100644
--- a/src/activitypub/mocks.js
+++ b/src/activitypub/mocks.js
@@ -535,6 +535,10 @@ Mocks.notes.public = async (post) => {
let context = await posts.getPostField(post.pid, 'context');
context = context || `${nconf.get('url')}/topic/${post.topic.tid}`;
+ /**
+ * audience is exposed as part of 1b12 but is now ignored by Lemmy.
+ * Remove this and most references to audience in 2026.
+ */
let audience = `${nconf.get('url')}/category/${post.category.cid}`; // default
if (inReplyTo) {
const chain = await activitypub.notes.getParentChain(post.uid, inReplyTo);