mirror of https://github.com/Chocobozzz/PeerTube
We don't need to load complete description anymore
It's already included in classic payloadpull/6562/head
parent
8e0144a089
commit
6ff42dff2a
|
@ -37,9 +37,7 @@ export class VideoUpdateResolver {
|
|||
|
||||
private buildVideoObservables (video: VideoDetails) {
|
||||
return [
|
||||
this.videoService
|
||||
.loadCompleteDescription(video.descriptionPath)
|
||||
.pipe(map(description => Object.assign(video, { description }))),
|
||||
of(video),
|
||||
|
||||
this.videoService.getSource(video.id),
|
||||
|
||||
|
|
|
@ -379,17 +379,6 @@ export class VideoService {
|
|||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
loadCompleteDescription (descriptionPath: string) {
|
||||
return this.authHttp
|
||||
.get<{ description: string }>(environment.apiUrl + descriptionPath)
|
||||
.pipe(
|
||||
map(res => res.description),
|
||||
catchError(err => this.restExtractor.handleError(err))
|
||||
)
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
generateDownloadUrl (options: {
|
||||
video: Video
|
||||
files: VideoFile[]
|
||||
|
|
Loading…
Reference in New Issue