Profile: Truncate long usernames

This commit is contained in:
2022-09-12 02:33:41 +02:00
parent b34c3e3f09
commit cd3b50bbe2
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ const { Card } = require('../models');
module.exports = {
name: "Compositing",
renderProfile: async function(profile, svgTemplate, renderedCards) {
let hash = crypto.createHash('md5').update(JSON.stringify(profile)).digest('hex');
let hash = crypto.createHash('md5').update(JSON.stringify(profile) + svgTemplate).digest('hex');
let outFile = `/app/assets/image_cache/profiles/${hash}.gif`;
console.log('Rendering profile to ' + outFile);