mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: summary post parse
This commit is contained in:
@@ -74,7 +74,7 @@ module.exports = function (Posts) {
|
|||||||
|
|
||||||
async function parsePosts(posts, options) {
|
async function parsePosts(posts, options) {
|
||||||
return await Promise.all(posts.map(async (post) => {
|
return await Promise.all(posts.map(async (post) => {
|
||||||
if (!post.content) {
|
if (!post.content && !post.sourceContent) {
|
||||||
return post;
|
return post;
|
||||||
}
|
}
|
||||||
if (options.parse) {
|
if (options.parse) {
|
||||||
|
|||||||
Reference in New Issue
Block a user