diff options
author | Chocobozzz <me@florianbigard.com> | 2021-05-28 10:21:39 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-05-28 10:22:50 +0200 |
commit | 012580d98f489e599d44a9a2a0bdc892b9455a90 (patch) | |
tree | cd6d4abdbf43f4cd1c051ac49682b97c7b6dca92 /client/src/app/+page-not-found | |
parent | d6d96bed80700830063c6055969d2d2ff46c63c6 (diff) | |
download | PeerTube-012580d98f489e599d44a9a2a0bdc892b9455a90.tar.gz PeerTube-012580d98f489e599d44a9a2a0bdc892b9455a90.tar.zst PeerTube-012580d98f489e599d44a9a2a0bdc892b9455a90.zip |
Cleanup
We must not expose private actor objects to clients
Just make 2 GET requests on channel/accounts instead
Diffstat (limited to 'client/src/app/+page-not-found')
-rw-r--r-- | client/src/app/+page-not-found/page-not-found.component.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/+page-not-found/page-not-found.component.ts b/client/src/app/+page-not-found/page-not-found.component.ts index 94b4c8d27..695568898 100644 --- a/client/src/app/+page-not-found/page-not-found.component.ts +++ b/client/src/app/+page-not-found/page-not-found.component.ts | |||
@@ -3,6 +3,7 @@ import { Title } from '@angular/platform-browser' | |||
3 | import { Router } from '@angular/router' | 3 | import { Router } from '@angular/router' |
4 | import { HttpStatusCode } from '@shared/core-utils/miscs/http-error-codes' | 4 | import { HttpStatusCode } from '@shared/core-utils/miscs/http-error-codes' |
5 | 5 | ||
6 | |||
6 | @Component({ | 7 | @Component({ |
7 | selector: 'my-page-not-found', | 8 | selector: 'my-page-not-found', |
8 | templateUrl: './page-not-found.component.html', | 9 | templateUrl: './page-not-found.component.html', |
@@ -10,7 +11,7 @@ import { HttpStatusCode } from '@shared/core-utils/miscs/http-error-codes' | |||
10 | }) | 11 | }) |
11 | export class PageNotFoundComponent implements OnInit { | 12 | export class PageNotFoundComponent implements OnInit { |
12 | status = HttpStatusCode.NOT_FOUND_404 | 13 | status = HttpStatusCode.NOT_FOUND_404 |
13 | type: string | 14 | type: 'video' | 'other' = 'other' |
14 | 15 | ||
15 | public constructor ( | 16 | public constructor ( |
16 | private titleService: Title, | 17 | private titleService: Title, |