diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-02-16 19:19:56 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-02-16 19:19:56 +0100 |
commit | 4793c343fd3cde3c6282ed0fb38e039b4276de0e (patch) | |
tree | 566856a8d0bee0ee06e60c5e3bf6b998135a078a /server/lib | |
parent | 3266ad7cf8ff10d0fdae456196eff1653cc7ac21 (diff) | |
download | PeerTube-4793c343fd3cde3c6282ed0fb38e039b4276de0e.tar.gz PeerTube-4793c343fd3cde3c6282ed0fb38e039b4276de0e.tar.zst PeerTube-4793c343fd3cde3c6282ed0fb38e039b4276de0e.zip |
Add email to pods
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/friends.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/lib/friends.js b/server/lib/friends.js index 2ea837c99..9b38693c7 100644 --- a/server/lib/friends.js +++ b/server/lib/friends.js | |||
@@ -245,6 +245,7 @@ function makeRequestsToWinningPods (cert, podsList, callback) { | |||
245 | method: 'POST', | 245 | method: 'POST', |
246 | json: { | 246 | json: { |
247 | host: constants.CONFIG.WEBSERVER.HOST, | 247 | host: constants.CONFIG.WEBSERVER.HOST, |
248 | email: constants.CONFIG.ADMIN.EMAIL, | ||
248 | publicKey: cert | 249 | publicKey: cert |
249 | } | 250 | } |
250 | } | 251 | } |
@@ -257,7 +258,7 @@ function makeRequestsToWinningPods (cert, podsList, callback) { | |||
257 | } | 258 | } |
258 | 259 | ||
259 | if (res.statusCode === 200) { | 260 | if (res.statusCode === 200) { |
260 | const podObj = db.Pod.build({ host: pod.host, publicKey: body.cert }) | 261 | const podObj = db.Pod.build({ host: pod.host, publicKey: body.cert, email: body.email }) |
261 | podObj.save().asCallback(function (err, podCreated) { | 262 | podObj.save().asCallback(function (err, podCreated) { |
262 | if (err) { | 263 | if (err) { |
263 | logger.error('Cannot add friend %s pod.', pod.host, { error: err }) | 264 | logger.error('Cannot add friend %s pod.', pod.host, { error: err }) |