mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
(fix) trim & from /api/banner/:pronounName.png (only added by a faulty Amazon client)
This commit is contained in:
parent
83c9b09eee
commit
14e079cd89
@ -40,7 +40,7 @@ router.get('/banner/:pronounName*.png', handleErrorAsync(async (req, res) => {
|
||||
const imageSize = 200;
|
||||
let leftRatio = 4;
|
||||
|
||||
const pronounName = req.params.pronounName + req.params[0];
|
||||
const pronounName = (req.params.pronounName + req.params[0]).replace(/(&)+$/, '');
|
||||
|
||||
const result = await new CacheObject('banner', `${pronounName}.png`, 24 * 60).fetch(async () => {
|
||||
const fontName = registerLocaleFont('fontHeadings', ['regular', 'bold']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user