X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Fcustom-validators%2Ffeeds.ts;h=fa35a7da6c072b0234a1b2b4101fccfd050da382;hb=dc48fdbe68e9dd3a3a6028181e61d8595d98e654;hp=638e814f03e36a7617a8d937600877cd8516ef27;hpb=244e76a552ef05a5067134b1065d26dd89246d8c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/custom-validators/feeds.ts b/server/helpers/custom-validators/feeds.ts index 638e814f0..fa35a7da6 100644 --- a/server/helpers/custom-validators/feeds.ts +++ b/server/helpers/custom-validators/feeds.ts @@ -13,7 +13,7 @@ function isValidRSSFeed (value: string) { 'atom1' ] - return feedExtensions.indexOf(value) !== -1 + return feedExtensions.includes(value) } // ---------------------------------------------------------------------------