0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

change image property to reference default image property

Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
This commit is contained in:
Gazook89
2022-12-01 10:58:27 -06:00
committed by GitHub
parent 9647fbcc74
commit 3a4c2d8f13

View File

@@ -272,7 +272,8 @@ app.get('/edit/:id', asyncHandler(getBrew('edit')), (req, res, next)=>{
req.ogMeta = { ...defaultMetaTags,
title : req.brew.title || 'Untitled Brew',
description : req.brew.description || 'No description.',
image : req.brew.thumbnail || `${config.get('publicUrl')}/thumbnail.png`,
image : req.brew.thumbnail || defaultMetaTags.image,
type : 'article'
};