kopia lustrzana https://github.com/cloudflare/wildebeest
17 wiersze
400 B
TypeScript
17 wiersze
400 B
TypeScript
import type { APObject } from '../objects'
|
|
import type { Actor } from '../actors'
|
|
import type { Activity } from '.'
|
|
import * as activity from '.'
|
|
|
|
const DELETE = 'Delete'
|
|
|
|
export function create(domain: string, actor: Actor, object: APObject): Activity {
|
|
return {
|
|
'@context': ['https://www.w3.org/ns/activitystreams'],
|
|
id: activity.uri(domain),
|
|
type: DELETE,
|
|
actor: actor.id,
|
|
object,
|
|
}
|
|
}
|