]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - server/lib/activitypub/activity.ts
Refactor AP context builder
[github/Chocobozzz/PeerTube.git] / server / lib / activitypub / activity.ts
... / ...
CommitLineData
1function getAPId (object: string | { id: string }) {
2 if (typeof object === 'string') return object
3
4 return object.id
5}
6
7export {
8 getAPId
9}