Add revision commit list

This commit is contained in:
Rūdolfs Ošiņš
2025-02-04 15:49:00 -06:00
parent f34522b689
commit 014a3e9eee
11 changed files with 500 additions and 179 deletions
+9
View File
@@ -6,6 +6,7 @@ import type { Patch } from "@bindings/cob/patch/Patch";
import bs58 from "bs58";
import twemojiModule from "twemoji";
import md5 from "md5";
import NodeId from "@app/components/NodeId.svelte";
@@ -211,3 +212,11 @@ export function parseNodeId(
return undefined;
}
// Get the gravatar URL of an email.
export function gravatarURL(email: string): string {
const address = email.trim().toLowerCase();
const hash = md5(address);
return `https://www.gravatar.com/avatar/${hash}`;
}