mirror of
https://seed.radicle.dev/rad:z4D5UCArafTzTQpDZNQRuqswh3ury.git
synced 2026-11-22 03:00:44 +08:00
Add revision commit list
This commit is contained in:
@@ -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}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user