diff options
Diffstat (limited to 'server/controllers/api/pods.js')
-rw-r--r-- | server/controllers/api/pods.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/controllers/api/pods.js b/server/controllers/api/pods.js index 38702face..e1fe6fb5d 100644 --- a/server/controllers/api/pods.js +++ b/server/controllers/api/pods.js | |||
@@ -5,6 +5,7 @@ const waterfall = require('async/waterfall') | |||
5 | 5 | ||
6 | const db = require('../../initializers/database') | 6 | const db = require('../../initializers/database') |
7 | const logger = require('../../helpers/logger') | 7 | const logger = require('../../helpers/logger') |
8 | const peertubeCrypto = require('../../helpers/peertube-crypto') | ||
8 | const utils = require('../../helpers/utils') | 9 | const utils = require('../../helpers/utils') |
9 | const friends = require('../../lib/friends') | 10 | const friends = require('../../lib/friends') |
10 | const middlewares = require('../../middlewares') | 11 | const middlewares = require('../../middlewares') |
@@ -67,7 +68,7 @@ function addPods (req, res, next) { | |||
67 | }, | 68 | }, |
68 | 69 | ||
69 | function fetchMyCertificate (callback) { | 70 | function fetchMyCertificate (callback) { |
70 | friends.getMyCertificate(function (err, cert) { | 71 | peertubeCrypto.getMyPublicCert(function (err, cert) { |
71 | if (err) { | 72 | if (err) { |
72 | logger.error('Cannot read cert file.') | 73 | logger.error('Cannot read cert file.') |
73 | return callback(err) | 74 | return callback(err) |