Node.js based forum software built for the modern web
fix: explicitly set as:sensitive to false when federating out as:Article
Julian Lamedc85a91a48b
diff --git a/src/activitypub/mocks.js b/src/activitypub/mocks.jsindex 86661718bd..68c4bbd0d2 100644--- a/src/activitypub/mocks.js+++ b/src/activitypub/mocks.js@@ -765,6 +765,7 @@ Mocks.notes.public = async (post) => {const image = attachment.filter(entry => entry.type === 'Image')?.shift();let preview;let summary = null;+ let sensitive = null;if (isArticle) {// Preview is not adopted by anybody, so is left commented-out for nowpreview = {@@ -803,6 +804,7 @@ Mocks.notes.public = async (post) => {return memo;}, '');+ sensitive = false;}// Final sanitization to clean up tags@@ -848,6 +850,7 @@ Mocks.notes.public = async (post) => {context,audience,...(summary && { summary }),+ ...(sensitive && { sensitive }),preview,content: post.content,source,