diff options
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/remote.js | 4 | ||||
-rw-r--r-- | server/controllers/api/users.js | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/server/controllers/api/remote.js b/server/controllers/api/remote.js index 94d6e740e..ac850c2d2 100644 --- a/server/controllers/api/remote.js +++ b/server/controllers/api/remote.js | |||
@@ -147,9 +147,9 @@ function addRemoteVideo (videoToCreateData, fromHost, finalCallback) { | |||
147 | }, | 147 | }, |
148 | 148 | ||
149 | function generateThumbnail (t, tagInstances, video, callback) { | 149 | function generateThumbnail (t, tagInstances, video, callback) { |
150 | db.Video.generateThumbnailFromBase64(video, videoToCreateData.thumbnailBase64, function (err) { | 150 | db.Video.generateThumbnailFromData(video, videoToCreateData.thumbnailData, function (err) { |
151 | if (err) { | 151 | if (err) { |
152 | logger.error('Cannot generate thumbnail from base 64 data.', { error: err }) | 152 | logger.error('Cannot generate thumbnail from data.', { error: err }) |
153 | return callback(err) | 153 | return callback(err) |
154 | } | 154 | } |
155 | 155 | ||
diff --git a/server/controllers/api/users.js b/server/controllers/api/users.js index e4423680c..53bf56790 100644 --- a/server/controllers/api/users.js +++ b/server/controllers/api/users.js | |||
@@ -1,12 +1,10 @@ | |||
1 | 'use strict' | 1 | 'use strict' |
2 | 2 | ||
3 | const each = require('async/each') | ||
4 | const express = require('express') | 3 | const express = require('express') |
5 | const waterfall = require('async/waterfall') | 4 | const waterfall = require('async/waterfall') |
6 | 5 | ||
7 | const constants = require('../../initializers/constants') | 6 | const constants = require('../../initializers/constants') |
8 | const db = require('../../initializers/database') | 7 | const db = require('../../initializers/database') |
9 | const friends = require('../../lib/friends') | ||
10 | const logger = require('../../helpers/logger') | 8 | const logger = require('../../helpers/logger') |
11 | const middlewares = require('../../middlewares') | 9 | const middlewares = require('../../middlewares') |
12 | const admin = middlewares.admin | 10 | const admin = middlewares.admin |