mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Use a single file instead of segments for HLS
This commit is contained in:
parent
6ec0b75beb
commit
4c280004ce
16 changed files with 189 additions and 146 deletions
|
@ -355,10 +355,10 @@ async function fetchRemoteActor (actorUrl: string): Promise<{ statusCode?: numbe
|
|||
|
||||
logger.info('Fetching remote actor %s.', actorUrl)
|
||||
|
||||
const requestResult = await doRequest(options)
|
||||
const requestResult = await doRequest<ActivityPubActor>(options)
|
||||
normalizeActor(requestResult.body)
|
||||
|
||||
const actorJSON: ActivityPubActor = requestResult.body
|
||||
const actorJSON = requestResult.body
|
||||
if (isActorObjectValid(actorJSON) === false) {
|
||||
logger.debug('Remote actor JSON is not valid.', { actorJSON })
|
||||
return { result: undefined, statusCode: requestResult.response.statusCode }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue