1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Finish admin design

This commit is contained in:
Chocobozzz 2017-12-08 17:31:21 +01:00
parent e600e1fea2
commit f595d39477
No known key found for this signature in database
GPG key ID: 583A612D890159BE
19 changed files with 163 additions and 114 deletions

View file

@ -41,15 +41,30 @@ async function videoActivityObjectToDBAttributes (
language = parseInt(videoObject.language.identifier, 10)
}
let category = null
if (videoObject.category) {
category = parseInt(videoObject.category.identifier, 10)
}
let licence = null
if (videoObject.licence) {
licence = parseInt(videoObject.licence.identifier, 10)
}
let description = null
if (videoObject.content) {
description = videoObject.content
}
const videoData: VideoAttributes = {
name: videoObject.name,
uuid: videoObject.uuid,
url: videoObject.id,
category: parseInt(videoObject.category.identifier, 10),
licence: parseInt(videoObject.licence.identifier, 10),
category,
licence,
language,
description,
nsfw: videoObject.nsfw,
description: videoObject.content,
channelId: videoChannel.id,
duration: parseInt(duration, 10),
createdAt: new Date(videoObject.published),