PeerTube_original/server/lib/activitypub/activity.ts
2022-03-24 09:40:46 +01:00

10 lines
145 B
TypeScript

function getAPId (object: string | { id: string }) {
if (typeof object === 'string') return object
return object.id
}
export {
getAPId
}