wildebeest/backend/src/activitypub/activities/index.ts

8 wiersze
237 B
TypeScript

export type Activity = any
// Generate a unique ID. Note that currently the generated URL aren't routable.
export function uri(domain: string): URL {
const id = crypto.randomUUID()
return new URL('/ap/a/' + id, 'https://' + domain)
}