aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+video-channels/video-channels.component.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2021-01-24 03:02:04 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-01-25 15:37:26 +0100
commitab398a05e9ffaacb8fc713bb2ba9717ac463b34c (patch)
treed73c6debfcc14c0dc05c681bb442e6f6fb6ce3a7 /client/src/app/+video-channels/video-channels.component.ts
parent6939cbac48e0a9823b34577836480ae3c28186be (diff)
downloadPeerTube-ab398a05e9ffaacb8fc713bb2ba9717ac463b34c.tar.gz
PeerTube-ab398a05e9ffaacb8fc713bb2ba9717ac463b34c.tar.zst
PeerTube-ab398a05e9ffaacb8fc713bb2ba9717ac463b34c.zip
redirect to login on 401, display error variants in 404 component
Diffstat (limited to 'client/src/app/+video-channels/video-channels.component.ts')
-rw-r--r--client/src/app/+video-channels/video-channels.component.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/+video-channels/video-channels.component.ts b/client/src/app/+video-channels/video-channels.component.ts
index d2fd265c4..bb601e227 100644
--- a/client/src/app/+video-channels/video-channels.component.ts
+++ b/client/src/app/+video-channels/video-channels.component.ts
@@ -38,7 +38,7 @@ export class VideoChannelsComponent implements OnInit, OnDestroy {
38 map(params => params[ 'videoChannelName' ]), 38 map(params => params[ 'videoChannelName' ]),
39 distinctUntilChanged(), 39 distinctUntilChanged(),
40 switchMap(videoChannelName => this.videoChannelService.getVideoChannel(videoChannelName)), 40 switchMap(videoChannelName => this.videoChannelService.getVideoChannel(videoChannelName)),
41 catchError(err => this.restExtractor.redirectTo404IfNotFound(err, [ 41 catchError(err => this.restExtractor.redirectTo404IfNotFound(err, 'other', [
42 HttpStatusCode.BAD_REQUEST_400, 42 HttpStatusCode.BAD_REQUEST_400,
43 HttpStatusCode.NOT_FOUND_404 43 HttpStatusCode.NOT_FOUND_404
44 ])) 44 ]))