Fix comment deletion with mastodon
authorChocobozzz <me@florianbigard.com>
Mon, 24 Sep 2018 14:24:42 +0000 (16:24 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 24 Sep 2018 14:24:42 +0000 (16:24 +0200)
Will only act with new comments

server/lib/activitypub/video-comments.ts

index 4ca8bf6595796431dd1396dbd46d712f740ddc3e..192add5e42f863d327f1cc0b72c2de5144c8ad46 100644 (file)
@@ -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,