0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-25 16:12:37 +00:00

Merge branch 'delete-route-for-account-deletion' of https://github.com/naturalcrit/homebrewery into delete-route-for-account-deletion

This commit is contained in:
Víctor Losada Hernández
2025-05-09 18:23:12 +02:00
22 changed files with 8333 additions and 263 deletions

View File

@@ -460,7 +460,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',
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'