diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-26 09:14:14 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-08-26 09:14:14 +0200 |
commit | e6abf95e9fc9fde52d583850cf7faafdf7d050d5 (patch) | |
tree | 704e5cb65e93a5d68d558a9b20a81e3909d8142c /shared/models/server | |
parent | ca00baa75ae849b1ba4953f0ff843ff5452f6745 (diff) | |
download | PeerTube-e6abf95e9fc9fde52d583850cf7faafdf7d050d5.tar.gz PeerTube-e6abf95e9fc9fde52d583850cf7faafdf7d050d5.tar.zst PeerTube-e6abf95e9fc9fde52d583850cf7faafdf7d050d5.zip |
Add redirection on unavailable video due to follow constraints
Diffstat (limited to 'shared/models/server')
-rw-r--r-- | shared/models/server/index.ts | 1 | ||||
-rw-r--r-- | shared/models/server/server-error-code.enum.ts | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/shared/models/server/index.ts b/shared/models/server/index.ts index b079bc9a0..f253a3a79 100644 --- a/shared/models/server/index.ts +++ b/shared/models/server/index.ts | |||
@@ -7,4 +7,5 @@ export * from './emailer.model' | |||
7 | export * from './job.model' | 7 | export * from './job.model' |
8 | export * from './log-level.type' | 8 | export * from './log-level.type' |
9 | export * from './server-config.model' | 9 | export * from './server-config.model' |
10 | export * from './server-error-code.enum' | ||
10 | export * from './server-stats.model' | 11 | export * from './server-stats.model' |
diff --git a/shared/models/server/server-error-code.enum.ts b/shared/models/server/server-error-code.enum.ts new file mode 100644 index 000000000..0bfb2c470 --- /dev/null +++ b/shared/models/server/server-error-code.enum.ts | |||
@@ -0,0 +1,3 @@ | |||
1 | export const enum ServerErrorCode { | ||
2 | DOES_NOT_RESPECT_FOLLOW_CONSTRAINTS = 1 | ||
3 | } | ||