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