Profile: Truncate long usernames

This commit is contained in:
Minz committed 2022-09-12 02:33:41 +02:00
1 parent b34c3e3f09
commit cd3b50bbe2
2 files changed
+2 -2

No files matched your search

+1 -1
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);