diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-24 14:47:32 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-24 14:47:32 +0200 |
commit | 7c07259ae5c7b636d52b8ec103a19d31c2f5b755 (patch) | |
tree | 30e85294a11ce8356dbcc31b0f9df91a18086306 /client/src/app/shared/shared-video-comment | |
parent | 978489b64c7b329cbfde5ffd7fe806702a3490c7 (diff) | |
download | PeerTube-7c07259ae5c7b636d52b8ec103a19d31c2f5b755.tar.gz PeerTube-7c07259ae5c7b636d52b8ec103a19d31c2f5b755.tar.zst PeerTube-7c07259ae5c7b636d52b8ec103a19d31c2f5b755.zip |
Fix fetching unlisted video in client
Diffstat (limited to 'client/src/app/shared/shared-video-comment')
-rw-r--r-- | client/src/app/shared/shared-video-comment/video-comment.service.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/shared/shared-video-comment/video-comment.service.ts b/client/src/app/shared/shared-video-comment/video-comment.service.ts index 6f2ef50cb..8cd94643a 100644 --- a/client/src/app/shared/shared-video-comment/video-comment.service.ts +++ b/client/src/app/shared/shared-video-comment/video-comment.service.ts | |||
@@ -31,7 +31,7 @@ export class VideoCommentService { | |||
31 | private restService: RestService | 31 | private restService: RestService |
32 | ) {} | 32 | ) {} |
33 | 33 | ||
34 | addCommentThread (videoId: number | string, comment: VideoCommentCreate) { | 34 | addCommentThread (videoId: string, comment: VideoCommentCreate) { |
35 | const url = VideoCommentService.BASE_VIDEO_URL + videoId + '/comment-threads' | 35 | const url = VideoCommentService.BASE_VIDEO_URL + videoId + '/comment-threads' |
36 | const normalizedComment = objectLineFeedToHtml(comment, 'text') | 36 | const normalizedComment = objectLineFeedToHtml(comment, 'text') |
37 | 37 | ||
@@ -42,7 +42,7 @@ export class VideoCommentService { | |||
42 | ) | 42 | ) |
43 | } | 43 | } |
44 | 44 | ||
45 | addCommentReply (videoId: number | string, inReplyToCommentId: number, comment: VideoCommentCreate) { | 45 | addCommentReply (videoId: string, inReplyToCommentId: number, comment: VideoCommentCreate) { |
46 | const url = VideoCommentService.BASE_VIDEO_URL + videoId + '/comments/' + inReplyToCommentId | 46 | const url = VideoCommentService.BASE_VIDEO_URL + videoId + '/comments/' + inReplyToCommentId |
47 | const normalizedComment = objectLineFeedToHtml(comment, 'text') | 47 | const normalizedComment = objectLineFeedToHtml(comment, 'text') |
48 | 48 | ||
@@ -75,7 +75,7 @@ export class VideoCommentService { | |||
75 | } | 75 | } |
76 | 76 | ||
77 | getVideoCommentThreads (parameters: { | 77 | getVideoCommentThreads (parameters: { |
78 | videoId: number | string | 78 | videoId: string |
79 | componentPagination: ComponentPaginationLight | 79 | componentPagination: ComponentPaginationLight |
80 | sort: string | 80 | sort: string |
81 | }): Observable<ThreadsResultList<VideoComment>> { | 81 | }): Observable<ThreadsResultList<VideoComment>> { |
@@ -95,7 +95,7 @@ export class VideoCommentService { | |||
95 | } | 95 | } |
96 | 96 | ||
97 | getVideoThreadComments (parameters: { | 97 | getVideoThreadComments (parameters: { |
98 | videoId: number | string | 98 | videoId: string |
99 | threadId: number | 99 | threadId: number |
100 | }): Observable<VideoCommentThreadTree> { | 100 | }): Observable<VideoCommentThreadTree> { |
101 | const { videoId, threadId } = parameters | 101 | const { videoId, threadId } = parameters |