aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/video/video-ownership.service.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-16 10:33:26 +0200
committerChocobozzz <me@florianbigard.com>2022-09-16 10:33:55 +0200
commit3afe0ec3b32d2bd9183541ecbf40278710f8707d (patch)
treeb2abcc754dfa9a3b22d8a56c89902da801265b86 /client/src/app/shared/shared-main/video/video-ownership.service.ts
parent56162c6a06732b6beb2021d0d95450363e21cadf (diff)
downloadPeerTube-3afe0ec3b32d2bd9183541ecbf40278710f8707d.tar.gz
PeerTube-3afe0ec3b32d2bd9183541ecbf40278710f8707d.tar.zst
PeerTube-3afe0ec3b32d2bd9183541ecbf40278710f8707d.zip
Fix broken dates with localized pages
Diffstat (limited to 'client/src/app/shared/shared-main/video/video-ownership.service.ts')
-rw-r--r--client/src/app/shared/shared-main/video/video-ownership.service.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/client/src/app/shared/shared-main/video/video-ownership.service.ts b/client/src/app/shared/shared-main/video/video-ownership.service.ts
index bc0e1b1d1..1e8f7f68c 100644
--- a/client/src/app/shared/shared-main/video/video-ownership.service.ts
+++ b/client/src/app/shared/shared-main/video/video-ownership.service.ts
@@ -1,6 +1,6 @@
1import { SortMeta } from 'primeng/api' 1import { SortMeta } from 'primeng/api'
2import { Observable } from 'rxjs' 2import { Observable } from 'rxjs'
3import { catchError, map } from 'rxjs/operators' 3import { catchError } from 'rxjs/operators'
4import { HttpClient, HttpParams } from '@angular/common/http' 4import { HttpClient, HttpParams } from '@angular/common/http'
5import { Injectable } from '@angular/core' 5import { Injectable } from '@angular/core'
6import { RestExtractor, RestPagination, RestService } from '@app/core' 6import { RestExtractor, RestPagination, RestService } from '@app/core'
@@ -35,10 +35,7 @@ export class VideoOwnershipService {
35 params = this.restService.addRestGetParams(params, pagination, sort) 35 params = this.restService.addRestGetParams(params, pagination, sort)
36 36
37 return this.authHttp.get<ResultList<VideoChangeOwnership>>(url, { params }) 37 return this.authHttp.get<ResultList<VideoChangeOwnership>>(url, { params })
38 .pipe( 38 .pipe(catchError(res => this.restExtractor.handleError(res)))
39 map(res => this.restExtractor.convertResultListDateToHuman(res)),
40 catchError(res => this.restExtractor.handleError(res))
41 )
42 } 39 }
43 40
44 acceptOwnership (id: number, input: VideoChangeOwnershipAccept) { 41 acceptOwnership (id: number, input: VideoChangeOwnershipAccept) {