diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-31 10:23:56 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-31 10:23:56 +0200 |
commit | 9588d4f49b7183631ddb97fa9c3cd79f9bfe2945 (patch) | |
tree | cbd0353ddc0129afa2c8827f27c0665c5c127225 /server/lib/activitypub/process/process-announce.ts | |
parent | 3f9b33b02bed9e02af5520394e09805c46716101 (diff) | |
download | PeerTube-9588d4f49b7183631ddb97fa9c3cd79f9bfe2945.tar.gz PeerTube-9588d4f49b7183631ddb97fa9c3cd79f9bfe2945.tar.zst PeerTube-9588d4f49b7183631ddb97fa9c3cd79f9bfe2945.zip |
Correctly forward video related activities
Diffstat (limited to 'server/lib/activitypub/process/process-announce.ts')
-rw-r--r-- | server/lib/activitypub/process/process-announce.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/lib/activitypub/process/process-announce.ts b/server/lib/activitypub/process/process-announce.ts index a6e1e2d47..4e50da8d2 100644 --- a/server/lib/activitypub/process/process-announce.ts +++ b/server/lib/activitypub/process/process-announce.ts | |||
@@ -5,7 +5,7 @@ import { ActorModel } from '../../../models/activitypub/actor' | |||
5 | import { VideoModel } from '../../../models/video/video' | 5 | import { VideoModel } from '../../../models/video/video' |
6 | import { VideoShareModel } from '../../../models/video/video-share' | 6 | import { VideoShareModel } from '../../../models/video/video-share' |
7 | import { getOrCreateActorAndServerAndModel } from '../actor' | 7 | import { getOrCreateActorAndServerAndModel } from '../actor' |
8 | import { forwardActivity } from '../send/utils' | 8 | import { forwardVideoRelatedActivity } from '../send/utils' |
9 | import { getOrCreateAccountAndVideoAndChannel } from '../videos' | 9 | import { getOrCreateAccountAndVideoAndChannel } from '../videos' |
10 | 10 | ||
11 | async function processAnnounceActivity (activity: ActivityAnnounce) { | 11 | async function processAnnounceActivity (activity: ActivityAnnounce) { |
@@ -58,7 +58,8 @@ async function shareVideo (actorAnnouncer: ActorModel, activity: ActivityAnnounc | |||
58 | if (video.isOwned() && created === true) { | 58 | if (video.isOwned() && created === true) { |
59 | // Don't resend the activity to the sender | 59 | // Don't resend the activity to the sender |
60 | const exceptions = [ actorAnnouncer ] | 60 | const exceptions = [ actorAnnouncer ] |
61 | await forwardActivity(activity, t, exceptions) | 61 | |
62 | await forwardVideoRelatedActivity(activity, t, exceptions, video) | ||
62 | } | 63 | } |
63 | 64 | ||
64 | return undefined | 65 | return undefined |