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

simple as cake

This commit is contained in:
Víctor Losada Hernández
2025-05-02 17:09:09 +02:00
parent 657eeea4d5
commit b914bf3bf5

View File

@@ -434,6 +434,7 @@ app.get('/share/:id', asyncHandler(getBrew('share')), asyncHandler(async (req, r
const { brew } = req;
req.ogMeta = { ...defaultMetaTags,
title : req.brew.title || 'Untitled Brew',
author : req.brew.authors[0] || 'No author.',
description : req.brew.description || 'No description.',
image : req.brew.thumbnail || defaultMetaTags.image,
type : 'article'