From 659edaa62c9728d794ca779ac9a62a092f1c84b5 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 2 Oct 2018 11:33:18 +0200 Subject: Correctly forward comment deletion --- server/lib/activitypub/process/process-delete.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/lib/activitypub/process') diff --git a/server/lib/activitypub/process/process-delete.ts b/server/lib/activitypub/process/process-delete.ts index 038d8c4d3..155d2ffcc 100644 --- a/server/lib/activitypub/process/process-delete.ts +++ b/server/lib/activitypub/process/process-delete.ts @@ -7,7 +7,7 @@ import { ActorModel } from '../../../models/activitypub/actor' import { VideoModel } from '../../../models/video/video' import { VideoChannelModel } from '../../../models/video/video-channel' import { VideoCommentModel } from '../../../models/video/video-comment' -import { forwardActivity } from '../send/utils' +import { forwardVideoRelatedActivity } from '../send/utils' async function processDeleteActivity (activity: ActivityDelete, byActor: ActorModel) { const objectUrl = typeof activity.object === 'string' ? activity.object : activity.object.id @@ -103,7 +103,7 @@ function processDeleteVideoComment (byActor: ActorModel, videoComment: VideoComm if (videoComment.Video.isOwned()) { // Don't resend the activity to the sender const exceptions = [ byActor ] - await forwardActivity(activity, t, exceptions) + await forwardVideoRelatedActivity(activity, t, exceptions, videoComment.Video) } logger.info('Remote video comment %s removed.', videoComment.url) -- cgit v1.2.3