diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-30 20:26:06 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-30 20:26:06 +0100 |
commit | 2de96f4d6b800076743ed2073f9529816cfd5c8a (patch) | |
tree | 8c2dbd29fe5560e0b24edaa58038581bddd49778 /server | |
parent | 8bf89b095a711d5ac5e6ef55575b166257d0d526 (diff) | |
download | PeerTube-2de96f4d6b800076743ed2073f9529816cfd5c8a.tar.gz PeerTube-2de96f4d6b800076743ed2073f9529816cfd5c8a.tar.zst PeerTube-2de96f4d6b800076743ed2073f9529816cfd5c8a.zip |
Lazy description and previews to video form
Diffstat (limited to 'server')
-rw-r--r-- | server/models/video/video-interface.ts | 2 | ||||
-rw-r--r-- | server/tests/api/check-params/videos.ts | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/server/models/video/video-interface.ts b/server/models/video/video-interface.ts index 3a7bc82a4..587652f45 100644 --- a/server/models/video/video-interface.ts +++ b/server/models/video/video-interface.ts | |||
@@ -138,7 +138,7 @@ export interface VideoInstance extends VideoClass, VideoAttributes, Sequelize.In | |||
138 | getOriginalFileHeight: VideoMethods.GetOriginalFileHeight | 138 | getOriginalFileHeight: VideoMethods.GetOriginalFileHeight |
139 | getEmbedPath: VideoMethods.GetEmbedPath | 139 | getEmbedPath: VideoMethods.GetEmbedPath |
140 | getDescriptionPath: VideoMethods.GetDescriptionPath | 140 | getDescriptionPath: VideoMethods.GetDescriptionPath |
141 | getTruncatedDescription : VideoMethods.GetTruncatedDescription | 141 | getTruncatedDescription: VideoMethods.GetTruncatedDescription |
142 | 142 | ||
143 | setTags: Sequelize.HasManySetAssociationsMixin<TagAttributes, string> | 143 | setTags: Sequelize.HasManySetAssociationsMixin<TagAttributes, string> |
144 | addVideoFile: Sequelize.HasManyAddAssociationMixin<VideoFileAttributes, string> | 144 | addVideoFile: Sequelize.HasManyAddAssociationMixin<VideoFileAttributes, string> |
diff --git a/server/tests/api/check-params/videos.ts b/server/tests/api/check-params/videos.ts index 765b9c16e..c59f5da93 100644 --- a/server/tests/api/check-params/videos.ts +++ b/server/tests/api/check-params/videos.ts | |||
@@ -280,9 +280,7 @@ describe('Test videos API validator', function () { | |||
280 | licence: 1, | 280 | licence: 1, |
281 | language: 6, | 281 | language: 6, |
282 | nsfw: false, | 282 | nsfw: false, |
283 | description: 'my super description which is very very very very very very very very very very very very very very' + | 283 | description: 'my super description which is very very very very very very very very very very very very very very long'.repeat(35), |
284 | 'very very very very very very very very very very very very very very very very very very very very very' + | ||
285 | 'very very very very very very very very very very very very very very very long', | ||
286 | tags: [ 'tag1', 'tag2' ], | 284 | tags: [ 'tag1', 'tag2' ], |
287 | channelId | 285 | channelId |
288 | } | 286 | } |
@@ -617,9 +615,7 @@ describe('Test videos API validator', function () { | |||
617 | licence: 2, | 615 | licence: 2, |
618 | language: 6, | 616 | language: 6, |
619 | nsfw: false, | 617 | nsfw: false, |
620 | description: 'my super description which is very very very very very very very very very very very very very very' + | 618 | description: 'my super description which is very very very very very very very very very very very very very long'.repeat(35), |
621 | 'very very very very very very very very very very very very very very very very very very very very very' + | ||
622 | 'very very very very very very very very very very very very very very very long', | ||
623 | tags: [ 'tag1', 'tag2' ] | 619 | tags: [ 'tag1', 'tag2' ] |
624 | } | 620 | } |
625 | await makePutBodyRequest({ url: server.url, path: path + videoId, token: server.accessToken, fields }) | 621 | await makePutBodyRequest({ url: server.url, path: path + videoId, token: server.accessToken, fields }) |