kopia lustrzana https://github.com/cloudflare/wildebeest
10 wiersze
313 B
TypeScript
10 wiersze
313 B
TypeScript
export type Activity = any
|
|
|
|
export const PUBLIC_GROUP = 'https://www.w3.org/ns/activitystreams#Public'
|
|
|
|
// 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)
|
|
}
|