0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-01 13:02:43 +00:00

My god it works

This commit is contained in:
David Bolack
2024-02-27 20:20:43 -06:00
parent 56851f2c2d
commit 7384cdc241
3 changed files with 44 additions and 15 deletions

View File

@@ -348,7 +348,6 @@ app.get('/share/:id', asyncHandler(getBrew('share')), asyncHandler(async (req, r
await HomebrewModel.increaseView({ shareId: brew.shareId });
}
};
req.brew.userThemes = await getUsersBrewThemes(req.account.username, req.brew.editId);
sanitizeBrew(req.brew, 'share');
splitTextStyleAndMetadata(req.brew);
return next();
@@ -356,7 +355,6 @@ app.get('/share/:id', asyncHandler(getBrew('share')), asyncHandler(async (req, r
//Print Page
app.get('/print/:id', asyncHandler(getBrew('share')), async (req, res, next)=>{
req.brew.userThemes = await getUsersBrewThemes(req.account.username, req.brew.editId);
sanitizeBrew(req.brew, 'share');
splitTextStyleAndMetadata(req.brew);
next();