diff options
author | Chocobozzz <me@florianbigard.com> | 2020-02-03 11:12:29 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-02-03 11:31:23 +0100 |
commit | 598edb8af1cc7e5ea3ead1ec9c96c4853b90be36 (patch) | |
tree | d74b090ecf06ebc58eab9b79ab35e981edf94cc2 /server/lib/activitypub/send/send-view.ts | |
parent | d6ebf0cac4ecacd672805e94b76541e569d42153 (diff) | |
download | PeerTube-598edb8af1cc7e5ea3ead1ec9c96c4853b90be36.tar.gz PeerTube-598edb8af1cc7e5ea3ead1ec9c96c4853b90be36.tar.zst PeerTube-598edb8af1cc7e5ea3ead1ec9c96c4853b90be36.zip |
Reduce AP context size on specific activities
Diffstat (limited to 'server/lib/activitypub/send/send-view.ts')
-rw-r--r-- | server/lib/activitypub/send/send-view.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/activitypub/send/send-view.ts b/server/lib/activitypub/send/send-view.ts index 8809417f9..47482b9a9 100644 --- a/server/lib/activitypub/send/send-view.ts +++ b/server/lib/activitypub/send/send-view.ts | |||
@@ -16,7 +16,7 @@ async function sendView (byActor: ActorModel, video: MVideoAccountLight, t: Tran | |||
16 | return buildViewActivity(url, byActor, video, audience) | 16 | return buildViewActivity(url, byActor, video, audience) |
17 | } | 17 | } |
18 | 18 | ||
19 | return sendVideoRelatedActivity(activityBuilder, { byActor, video, transaction: t }) | 19 | return sendVideoRelatedActivity(activityBuilder, { byActor, video, transaction: t, contextType: 'View' }) |
20 | } | 20 | } |
21 | 21 | ||
22 | function buildViewActivity (url: string, byActor: MActorAudience, video: MVideoUrl, audience?: ActivityAudience): ActivityView { | 22 | function buildViewActivity (url: string, byActor: MActorAudience, video: MVideoUrl, audience?: ActivityAudience): ActivityView { |