mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 17:16:28 +02:00
fix: #14187, federate out note if no title, otherwise article.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user