mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix lint
This commit is contained in:
@@ -226,7 +226,7 @@ async function registerUser (req: express.Request, res: express.Response) {
|
||||
})
|
||||
|
||||
const { user, account, videoChannel } = await createUserAccountAndChannelAndPlaylist({
|
||||
userToCreate: userToCreate,
|
||||
userToCreate,
|
||||
userDisplayName: body.displayName || undefined,
|
||||
channelNames: body.channel
|
||||
})
|
||||
|
||||
@@ -274,7 +274,7 @@ async function buildVideo (channelId: number, body: VideoImportCreate, importDat
|
||||
support: body.support || null,
|
||||
privacy: body.privacy || VideoPrivacy.PRIVATE,
|
||||
duration: 0, // duration will be set by the import job
|
||||
channelId: channelId,
|
||||
channelId,
|
||||
originallyPublishedAt: body.originallyPublishedAt
|
||||
? new Date(body.originallyPublishedAt)
|
||||
: importData.originallyPublishedAt
|
||||
|
||||
@@ -39,7 +39,7 @@ async function viewVideo (req: express.Request, res: express.Response) {
|
||||
})
|
||||
|
||||
if (successView) {
|
||||
Hooks.runAction('action:api.video.viewed', { video: video, ip, req, res })
|
||||
Hooks.runAction('action:api.video.viewed', { video, ip, req, res })
|
||||
}
|
||||
|
||||
await updateUserHistoryIfNeeded(body, video, res)
|
||||
|
||||
@@ -141,7 +141,7 @@ function buildOEmbed (options: {
|
||||
html,
|
||||
width: embedWidth,
|
||||
height: embedHeight,
|
||||
title: title,
|
||||
title,
|
||||
author_name: channel.name,
|
||||
author_url: channel.Actor.url,
|
||||
provider_name: 'PeerTube',
|
||||
|
||||
Reference in New Issue
Block a user