aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/friends.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/friends.js')
-rw-r--r--lib/friends.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/friends.js b/lib/friends.js
index badf09c7d..c05ccedb1 100644
--- a/lib/friends.js
+++ b/lib/friends.js
@@ -10,7 +10,6 @@
10 var logger = require('../helpers/logger') 10 var logger = require('../helpers/logger')
11 var peertubeCrypto = require('../helpers/peertubeCrypto') 11 var peertubeCrypto = require('../helpers/peertubeCrypto')
12 var Pods = require('../models/pods') 12 var Pods = require('../models/pods')
13 var PoolRequests = require('../models/poolRequests')
14 var poolRequests = require('../lib/poolRequests') 13 var poolRequests = require('../lib/poolRequests')
15 var requests = require('../helpers/requests') 14 var requests = require('../helpers/requests')
16 var Videos = require('../models/videos') 15 var Videos = require('../models/videos')
@@ -32,7 +31,7 @@
32 var id = video.name + video.magnetUri 31 var id = video.name + video.magnetUri
33 // ensure namePath is null 32 // ensure namePath is null
34 video.namePath = null 33 video.namePath = null
35 PoolRequests.addRequest(id, 'add', video) 34 poolRequests.addRequest(id, 'add', video)
36 } 35 }
37 36
38 function hasFriends (callback) { 37 function hasFriends (callback) {
@@ -204,7 +203,7 @@
204 function removeVideoToFriends (video) { 203 function removeVideoToFriends (video) {
205 // To avoid duplicates 204 // To avoid duplicates
206 var id = video.name + video.magnetUri 205 var id = video.name + video.magnetUri
207 PoolRequests.addRequest(id, 'remove', video) 206 poolRequests.addRequest(id, 'remove', video)
208 } 207 }
209 208
210 // --------------------------------------------------------------------------- 209 // ---------------------------------------------------------------------------