fix: post images

This commit is contained in:
Cory Dransfeldt 2023-05-23 09:41:45 -07:00
parent 6004eae584
commit 401ed70d37
No known key found for this signature in database
3 changed files with 9 additions and 11 deletions

View file

@ -15,11 +15,8 @@ module.exports = {
mdToHtml: (content) => {
return marked.parse(content)
},
getPostImage: (post) => {
if (post && post['image'] && post['image'] !== '') {
return post['image']
}
getPostImage: (image) => {
if (image && image !== '') return image
return '/assets/img/social-card.png'
},
webmentionsByUrl: (webmentions, url) => {