kopia lustrzana https://github.com/cloudflare/wildebeest
17 wiersze
390 B
TypeScript
17 wiersze
390 B
TypeScript
// https://www.w3.org/TR/activitystreams-vocabulary/#dfn-announce
|
|
|
|
import type { Object } from '../objects'
|
|
import type { Actor } from '../actors'
|
|
import type { Activity } from '.'
|
|
|
|
const ANNOUNCE = 'Announce'
|
|
|
|
export function create(actor: Actor, object: URL): Activity {
|
|
return {
|
|
'@context': 'https://www.w3.org/ns/activitystreams',
|
|
type: ANNOUNCE,
|
|
actor: actor.id,
|
|
object,
|
|
}
|
|
}
|