import { peertubeTruncate } from '@server/helpers/core-utils'
function isActorEndpointsObjectValid (endpointObject: any) {
- if (endpointObject && endpointObject.sharedInbox) {
+ if (endpointObject?.sharedInbox) {
return isActivityPubUrlValid(endpointObject.sharedInbox)
}
actor.summary = null
}
}
-
- return
}
function isValidActorHandle (handle: string) {