1
0
forked from w0bm/f0bm

change how tags are displayed in tag image

This commit is contained in:
x
2026-01-23 19:52:39 +01:00
parent 4de2652ffe
commit 1dd4b54b48

View File

@@ -2,7 +2,7 @@ import crypto from 'crypto';
export default (router, tpl) => {
router.get(/^\/tag_image\/(?<tag>.+)$/, async (req, res) => {
const tag = req.params.tag;
const tag = decodeURIComponent(req.params.tag);
// Create a deterministic hash from the tag
const hash = crypto.createHash('md5').update(tag).digest('hex');