Author page exception fix
Signed-off-by: Armored Dragon <publicmail@armoreddragon.com>pull/2/head
parent
78923279be
commit
32c0ca36ef
|
@ -113,10 +113,8 @@ async function getBlog({ id, visibility = "PUBLISHED", owner_id, limit = 10, pag
|
|||
|
||||
AND: [
|
||||
{
|
||||
OR: [
|
||||
|
||||
]
|
||||
}
|
||||
OR: [],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
|
@ -391,11 +389,13 @@ async function _renderPost(blog_post, raw, { post_type = "blog" } = {}) {
|
|||
// get thumbnail URL
|
||||
blog_post.thumbnail = await _getImage(blog_post.id, post_type, blog_post.thumbnail);
|
||||
|
||||
if (blog_post.content) {
|
||||
// Render the markdown contents of the post
|
||||
blog_post.content = md.render(blog_post.content);
|
||||
|
||||
// Replace custom formatting with what we want
|
||||
blog_post.content = _format_blog_content(blog_post.content, blog_post.images);
|
||||
}
|
||||
|
||||
return blog_post;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue