diff options
Diffstat (limited to 'server/lib/activitypub/send/send-delete.ts')
-rw-r--r-- | server/lib/activitypub/send/send-delete.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/lib/activitypub/send/send-delete.ts b/server/lib/activitypub/send/send-delete.ts index 7a1d6f0ba..6c7fb8449 100644 --- a/server/lib/activitypub/send/send-delete.ts +++ b/server/lib/activitypub/send/send-delete.ts | |||
@@ -48,7 +48,10 @@ async function sendDeleteVideoComment (videoComment: VideoCommentModel, t: Trans | |||
48 | const isVideoOrigin = videoComment.Video.isOwned() | 48 | const isVideoOrigin = videoComment.Video.isOwned() |
49 | 49 | ||
50 | const url = getDeleteActivityPubUrl(videoComment.url) | 50 | const url = getDeleteActivityPubUrl(videoComment.url) |
51 | const byActor = videoComment.Account.Actor | 51 | const byActor = videoComment.isOwned() |
52 | ? videoComment.Account.Actor | ||
53 | : videoComment.Video.VideoChannel.Account.Actor | ||
54 | |||
52 | const threadParentComments = await VideoCommentModel.listThreadParentComments(videoComment, t) | 55 | const threadParentComments = await VideoCommentModel.listThreadParentComments(videoComment, t) |
53 | 56 | ||
54 | const actorsInvolvedInComment = await getActorsInvolvedInVideo(videoComment.Video, t) | 57 | const actorsInvolvedInComment = await getActorsInvolvedInVideo(videoComment.Video, t) |