aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-24 14:47:32 +0200
committerChocobozzz <me@florianbigard.com>2022-06-24 14:47:32 +0200
commit7c07259ae5c7b636d52b8ec103a19d31c2f5b755 (patch)
tree30e85294a11ce8356dbcc31b0f9df91a18086306 /client/src/app/shared/shared-main/video
parent978489b64c7b329cbfde5ffd7fe806702a3490c7 (diff)
downloadPeerTube-7c07259ae5c7b636d52b8ec103a19d31c2f5b755.tar.gz
PeerTube-7c07259ae5c7b636d52b8ec103a19d31c2f5b755.tar.zst
PeerTube-7c07259ae5c7b636d52b8ec103a19d31c2f5b755.zip
Fix fetching unlisted video in client
Diffstat (limited to 'client/src/app/shared/shared-main/video')
-rw-r--r--client/src/app/shared/shared-main/video/video.service.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/src/app/shared/shared-main/video/video.service.ts b/client/src/app/shared/shared-main/video/video.service.ts
index 83bc4eeb6..7810c4303 100644
--- a/client/src/app/shared/shared-main/video/video.service.ts
+++ b/client/src/app/shared/shared-main/video/video.service.ts
@@ -338,19 +338,19 @@ export class VideoService {
338 ) 338 )
339 } 339 }
340 340
341 setVideoLike (id: number) { 341 setVideoLike (id: string) {
342 return this.setVideoRate(id, 'like') 342 return this.setVideoRate(id, 'like')
343 } 343 }
344 344
345 setVideoDislike (id: number) { 345 setVideoDislike (id: string) {
346 return this.setVideoRate(id, 'dislike') 346 return this.setVideoRate(id, 'dislike')
347 } 347 }
348 348
349 unsetVideoLike (id: number) { 349 unsetVideoLike (id: string) {
350 return this.setVideoRate(id, 'none') 350 return this.setVideoRate(id, 'none')
351 } 351 }
352 352
353 getUserVideoRating (id: number) { 353 getUserVideoRating (id: string) {
354 const url = UserService.BASE_USERS_URL + 'me/videos/' + id + '/rating' 354 const url = UserService.BASE_USERS_URL + 'me/videos/' + id + '/rating'
355 355
356 return this.authHttp.get<UserVideoRate>(url) 356 return this.authHttp.get<UserVideoRate>(url)
@@ -466,7 +466,7 @@ export class VideoService {
466 } 466 }
467 } 467 }
468 468
469 private setVideoRate (id: number, rateType: UserVideoRateType) { 469 private setVideoRate (id: string, rateType: UserVideoRateType) {
470 const url = `${VideoService.BASE_VIDEO_URL}/${id}/rate` 470 const url = `${VideoService.BASE_VIDEO_URL}/${id}/rate`
471 const body: UserVideoRateUpdate = { 471 const body: UserVideoRateUpdate = {
472 rating: rateType 472 rating: rateType