From: Chocobozzz Date: Mon, 24 Sep 2018 14:24:42 +0000 (+0200) Subject: Fix comment deletion with mastodon X-Git-Tag: v1.0.0-beta.14~8 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=47d0b3ee611d1ae85c92149521619ebdf5f5cc25;hp=e5565833f62b97f62ea75eba5b479963ae78b873;p=github%2FChocobozzz%2FPeerTube.git Fix comment deletion with mastodon Will only act with new comments --- diff --git a/server/lib/activitypub/video-comments.ts b/server/lib/activitypub/video-comments.ts index 4ca8bf659..192add5e4 100644 --- a/server/lib/activitypub/video-comments.ts +++ b/server/lib/activitypub/video-comments.ts @@ -27,7 +27,7 @@ async function videoCommentActivityObjectToDBAttributes (video: VideoModel, acto } return { - url: comment.url, + url: comment.id, text: comment.content, videoId: video.id, accountId: actor.Account.id,