]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/activitypub/process/process.ts
Warn user when they want to delete a channel
[github/Chocobozzz/PeerTube.git] / server / lib / activitypub / process / process.ts
index bcc5cac7ac23e5db390998c11b8fd5cc1e81a6f6..2479d5da20f8b0470b65fdf0ec43ce6fff4aceef 100644 (file)
@@ -35,7 +35,7 @@ async function processActivities (
   const actorsCache: { [ url: string ]: ActorModel } = {}
 
   for (const activity of activities) {
-    if (!options.signatureActor && [ 'Create', 'Announce', 'Like' ].indexOf(activity.type) === -1) {
+    if (!options.signatureActor && [ 'Create', 'Announce', 'Like' ].includes(activity.type) === false) {
       logger.error('Cannot process activity %s (type: %s) without the actor signature.', activity.id, activity.type)
       continue
     }