Skip to content

Node.js based forum software built for the modern web

fix: #14187, federate out note if no title, otherwise article.

Julian Lama537e384932c
diff --git a/src/activitypub/mocks.js b/src/activitypub/mocks.js
index 030175fb36..16d99a6b61 100644
--- a/src/activitypub/mocks.js
+++ b/src/activitypub/mocks.js
@@ -710,8 +710,7 @@ Mocks.notes.public = async (post) => {
});
// Special handling for main posts (as:Article w/ as:Note preview)
- const plaintext = posts.sanitizePlaintext(content);
- const isArticle = post.pid === post.topic.mainPid && plaintext.length > meta.config.activitypubSummaryLimit;
+ const isArticle = post.pid === post.topic.mainPid && !generatedTitle;
if (post.isMainPost) {
const thumbs = await topics.thumbs.get(post.tid);