From 4cc2d429c511e4c7302a9248400b870dc6bac0c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Fri, 2 May 2025 17:15:24 +0200 Subject: [PATCH] try to pass it as title --- server/app.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/app.js b/server/app.js index 1c4905698..90d2b8e94 100644 --- a/server/app.js +++ b/server/app.js @@ -433,8 +433,7 @@ app.get('/new', asyncHandler(async(req, res, next)=>{ app.get('/share/:id', asyncHandler(getBrew('share')), asyncHandler(async (req, res, next)=>{ const { brew } = req; req.ogMeta = { ...defaultMetaTags, - title : req.brew.title || 'Untitled Brew', - author : req.brew.authors[0] || 'No author.', + title : `${req.brew.title || 'Untitled Brew'} - ${req.brew.authors[0] || 'No author.'}`, description : req.brew.description || 'No description.', image : req.brew.thumbnail || defaultMetaTags.image, type : 'article'