diff options
Diffstat (limited to 'client/src/app/videos/shared/video.service.ts')
-rw-r--r-- | client/src/app/videos/shared/video.service.ts | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/client/src/app/videos/shared/video.service.ts b/client/src/app/videos/shared/video.service.ts index 8fdc1f213..7d5372334 100644 --- a/client/src/app/videos/shared/video.service.ts +++ b/client/src/app/videos/shared/video.service.ts | |||
@@ -99,15 +99,11 @@ export class VideoService { | |||
99 | .catch((res) => this.restExtractor.handleError(res)) | 99 | .catch((res) => this.restExtractor.handleError(res)) |
100 | } | 100 | } |
101 | 101 | ||
102 | reportVideo (id: number, reason: string) { | 102 | loadCompleteDescription (descriptionPath: string) { |
103 | const url = VideoService.BASE_VIDEO_URL + id + '/abuse' | 103 | return this.authHttp |
104 | const body: VideoAbuseCreate = { | 104 | .get(API_URL + descriptionPath) |
105 | reason | 105 | .map(res => res['description']) |
106 | } | 106 | .catch((res) => this.restExtractor.handleError(res)) |
107 | |||
108 | return this.authHttp.post(url, body) | ||
109 | .map(this.restExtractor.extractDataBool) | ||
110 | .catch(res => this.restExtractor.handleError(res)) | ||
111 | } | 107 | } |
112 | 108 | ||
113 | setVideoLike (id: number) { | 109 | setVideoLike (id: number) { |