Add subscriptions endpoints to REST API
[oweals/peertube.git] / server / lib / activitypub / send / send-create.ts
index f7a8cf0b36da47160e8ca7b95149bd41f4fc6808..fc76cdd8abdb058feee52ded0841ea04deb81034 100644 (file)
@@ -33,6 +33,8 @@ async function sendCreateVideo (video: VideoModel, t: Transaction) {
 }
 
 async function sendVideoAbuse (byActor: ActorModel, videoAbuse: VideoAbuseModel, video: VideoModel, t: Transaction) {
+  if (!video.VideoChannel.Account.Actor.serverId) return // Local
+
   const url = getVideoAbuseActivityPubUrl(videoAbuse)
 
   logger.info('Creating job to send video abuse %s.', url)