Add experimental opengraph tags

This commit is contained in:
Cadence Fish
2020-03-05 01:12:24 +13:00
parent fbe9583988
commit ecdd37dd1b
3 changed files with 41 additions and 2 deletions

View File

@@ -172,7 +172,8 @@ module.exports = [
if (post.isVideo()) await post.fetchVideoURL()
return render(200, "pug/post.pug", {
title: getPageTitle(post),
post
post,
website_origin: constants.website_origin
})
}).catch(error => {
if (error === constants.symbols.NOT_FOUND) {