aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/activitypub/client.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-02-03 11:12:29 +0100
committerChocobozzz <me@florianbigard.com>2020-02-03 11:31:23 +0100
commit598edb8af1cc7e5ea3ead1ec9c96c4853b90be36 (patch)
treed74b090ecf06ebc58eab9b79ab35e981edf94cc2 /server/controllers/activitypub/client.ts
parentd6ebf0cac4ecacd672805e94b76541e569d42153 (diff)
downloadPeerTube-598edb8af1cc7e5ea3ead1ec9c96c4853b90be36.tar.gz
PeerTube-598edb8af1cc7e5ea3ead1ec9c96c4853b90be36.tar.zst
PeerTube-598edb8af1cc7e5ea3ead1ec9c96c4853b90be36.zip
Reduce AP context size on specific activities
Diffstat (limited to 'server/controllers/activitypub/client.ts')
-rw-r--r--server/controllers/activitypub/client.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/activitypub/client.ts b/server/controllers/activitypub/client.ts
index 39f6d7231..2812bfe1e 100644
--- a/server/controllers/activitypub/client.ts
+++ b/server/controllers/activitypub/client.ts
@@ -234,7 +234,7 @@ async function videoAnnounceController (req: express.Request, res: express.Respo
234 234
235 const { activity } = await buildAnnounceWithVideoAudience(share.Actor, share, res.locals.videoAll, undefined) 235 const { activity } = await buildAnnounceWithVideoAudience(share.Actor, share, res.locals.videoAll, undefined)
236 236
237 return activityPubResponse(activityPubContextify(activity), res) 237 return activityPubResponse(activityPubContextify(activity, 'Announce'), res)
238} 238}
239 239
240async function videoAnnouncesController (req: express.Request, res: express.Response) { 240async function videoAnnouncesController (req: express.Request, res: express.Response) {