Fix Gravatar support

This commit is contained in:
Bruno Antunes 2024-02-21 10:23:53 +00:00
parent 1412f63dfa
commit f61b187402
4 changed files with 11 additions and 3 deletions

View file

@ -138,7 +138,7 @@ new Vue({
const clients = await this.api.getClients();
this.clients = clients.map((client) => {
if (client.name.includes('@') && client.name.includes('.')) {
client.avatar = `https://www.gravatar.com/avatar/${sha512(client.name)}?d=blank`;
client.avatar = `https://gravatar.com/avatar/${sha256(client.name.toLowerCase())}.jpg`;
}
if (!this.clientsPersist[client.id]) {