]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/custom-jsonld-signature.ts
Add ability to filter out public videos from admin
[github/Chocobozzz/PeerTube.git] / server / helpers / custom-jsonld-signature.ts
index 749c50cb3d5c6f5de154964948d56596f493246d..3c706e372ee26a9b17f4ed3457fb1cf74c44e106 100644 (file)
@@ -1,7 +1,8 @@
-import * as AsyncLRU from 'async-lru'
-import * as jsonld from 'jsonld'
+import AsyncLRU from 'async-lru'
 import { logger } from './logger'
 
+import jsonld = require('jsonld')
+
 const CACHE = {
   'https://w3id.org/security/v1': {
     '@context': {
@@ -76,6 +77,7 @@ const lru = new AsyncLRU({
   }
 })
 
+/* eslint-disable no-import-assign */
 jsonld.documentLoader = (url) => {
   return new Promise((res, rej) => {
     lru.get(url, (err, value) => {