aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/lib/activitypub/activity.ts
blob: cccb7b1c1d4a081dc90e89dec2faee5dba0ecf00 (plain) (tree)
1
2
3
4
5
6
7
8
9






                                                    

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

  return object.id
}

export {
  getAPId
}