X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-video-comment%2Fvideo-comment.service.ts;h=8cd94643a41404c0f2e5ed5ceb9bfe17b57379c1;hb=7c07259ae5c7b636d52b8ec103a19d31c2f5b755;hp=6f2ef50cb0d09032d8bef553401a2a894b587a7a;hpb=978489b64c7b329cbfde5ffd7fe806702a3490c7;p=github%2FChocobozzz%2FPeerTube.git 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 { private restService: RestService ) {} - addCommentThread (videoId: number | string, comment: VideoCommentCreate) { + addCommentThread (videoId: string, comment: VideoCommentCreate) { const url = VideoCommentService.BASE_VIDEO_URL + videoId + '/comment-threads' const normalizedComment = objectLineFeedToHtml(comment, 'text') @@ -42,7 +42,7 @@ export class VideoCommentService { ) } - addCommentReply (videoId: number | string, inReplyToCommentId: number, comment: VideoCommentCreate) { + addCommentReply (videoId: string, inReplyToCommentId: number, comment: VideoCommentCreate) { const url = VideoCommentService.BASE_VIDEO_URL + videoId + '/comments/' + inReplyToCommentId const normalizedComment = objectLineFeedToHtml(comment, 'text') @@ -75,7 +75,7 @@ export class VideoCommentService { } getVideoCommentThreads (parameters: { - videoId: number | string + videoId: string componentPagination: ComponentPaginationLight sort: string }): Observable> { @@ -95,7 +95,7 @@ export class VideoCommentService { } getVideoThreadComments (parameters: { - videoId: number | string + videoId: string threadId: number }): Observable { const { videoId, threadId } = parameters