diff options
author | Chocobozzz <me@florianbigard.com> | 2020-02-04 16:34:46 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-02-04 16:34:46 +0100 |
commit | 084a2cd0f6274afac0fbcd714e627273da1df25e (patch) | |
tree | ee77411b98b8e2ef671b24a91dbd4b6dcdcd9d37 /server/controllers | |
parent | 2c8776fc316da9719e5ebc55dfabdcac9e197ac4 (diff) | |
download | PeerTube-084a2cd0f6274afac0fbcd714e627273da1df25e.tar.gz PeerTube-084a2cd0f6274afac0fbcd714e627273da1df25e.tar.zst PeerTube-084a2cd0f6274afac0fbcd714e627273da1df25e.zip |
Optimize context for CacheFile
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/activitypub/client.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/activitypub/client.ts b/server/controllers/activitypub/client.ts index 395cfa0d5..84828e7e0 100644 --- a/server/controllers/activitypub/client.ts +++ b/server/controllers/activitypub/client.ts | |||
@@ -335,10 +335,10 @@ async function videoRedundancyController (req: express.Request, res: express.Res | |||
335 | 335 | ||
336 | if (req.path.endsWith('/activity')) { | 336 | if (req.path.endsWith('/activity')) { |
337 | const data = buildCreateActivity(videoRedundancy.url, serverActor, object, audience) | 337 | const data = buildCreateActivity(videoRedundancy.url, serverActor, object, audience) |
338 | return activityPubResponse(activityPubContextify(data), res) | 338 | return activityPubResponse(activityPubContextify(data, 'CacheFile'), res) |
339 | } | 339 | } |
340 | 340 | ||
341 | return activityPubResponse(activityPubContextify(object), res) | 341 | return activityPubResponse(activityPubContextify(object, 'CacheFile'), res) |
342 | } | 342 | } |
343 | 343 | ||
344 | async function videoPlaylistController (req: express.Request, res: express.Response) { | 344 | async function videoPlaylistController (req: express.Request, res: express.Response) { |