diff options
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/users/index.ts | 2 | ||||
-rw-r--r-- | server/controllers/api/videos/import.ts | 2 | ||||
-rw-r--r-- | server/controllers/api/videos/view.ts | 2 | ||||
-rw-r--r-- | server/controllers/services.ts | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts index 46e80d56d..7761ba602 100644 --- a/server/controllers/api/users/index.ts +++ b/server/controllers/api/users/index.ts | |||
@@ -226,7 +226,7 @@ async function registerUser (req: express.Request, res: express.Response) { | |||
226 | }) | 226 | }) |
227 | 227 | ||
228 | const { user, account, videoChannel } = await createUserAccountAndChannelAndPlaylist({ | 228 | const { user, account, videoChannel } = await createUserAccountAndChannelAndPlaylist({ |
229 | userToCreate: userToCreate, | 229 | userToCreate, |
230 | userDisplayName: body.displayName || undefined, | 230 | userDisplayName: body.displayName || undefined, |
231 | channelNames: body.channel | 231 | channelNames: body.channel |
232 | }) | 232 | }) |
diff --git a/server/controllers/api/videos/import.ts b/server/controllers/api/videos/import.ts index 44283e266..7576e77e7 100644 --- a/server/controllers/api/videos/import.ts +++ b/server/controllers/api/videos/import.ts | |||
@@ -274,7 +274,7 @@ async function buildVideo (channelId: number, body: VideoImportCreate, importDat | |||
274 | support: body.support || null, | 274 | support: body.support || null, |
275 | privacy: body.privacy || VideoPrivacy.PRIVATE, | 275 | privacy: body.privacy || VideoPrivacy.PRIVATE, |
276 | duration: 0, // duration will be set by the import job | 276 | duration: 0, // duration will be set by the import job |
277 | channelId: channelId, | 277 | channelId, |
278 | originallyPublishedAt: body.originallyPublishedAt | 278 | originallyPublishedAt: body.originallyPublishedAt |
279 | ? new Date(body.originallyPublishedAt) | 279 | ? new Date(body.originallyPublishedAt) |
280 | : importData.originallyPublishedAt | 280 | : importData.originallyPublishedAt |
diff --git a/server/controllers/api/videos/view.ts b/server/controllers/api/videos/view.ts index dee1ec67c..a747fa334 100644 --- a/server/controllers/api/videos/view.ts +++ b/server/controllers/api/videos/view.ts | |||
@@ -39,7 +39,7 @@ async function viewVideo (req: express.Request, res: express.Response) { | |||
39 | }) | 39 | }) |
40 | 40 | ||
41 | if (successView) { | 41 | if (successView) { |
42 | Hooks.runAction('action:api.video.viewed', { video: video, ip, req, res }) | 42 | Hooks.runAction('action:api.video.viewed', { video, ip, req, res }) |
43 | } | 43 | } |
44 | 44 | ||
45 | await updateUserHistoryIfNeeded(body, video, res) | 45 | await updateUserHistoryIfNeeded(body, video, res) |
diff --git a/server/controllers/services.ts b/server/controllers/services.ts index 70d08ab69..cabcbc00b 100644 --- a/server/controllers/services.ts +++ b/server/controllers/services.ts | |||
@@ -141,7 +141,7 @@ function buildOEmbed (options: { | |||
141 | html, | 141 | html, |
142 | width: embedWidth, | 142 | width: embedWidth, |
143 | height: embedHeight, | 143 | height: embedHeight, |
144 | title: title, | 144 | title, |
145 | author_name: channel.name, | 145 | author_name: channel.name, |
146 | author_url: channel.Actor.url, | 146 | author_url: channel.Actor.url, |
147 | provider_name: 'PeerTube', | 147 | provider_name: 'PeerTube', |