From 3cf3f93a5e1c08d5d6255991877b6b68054093cc Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 10 Jan 2025 14:01:36 -0500 Subject: [PATCH] fix: add deprecation note re: as:audience --- src/activitypub/mocks.js | 4 ++++ 1 file changed, 4 insertions(+) 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);