diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-04 13:31:41 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-04 15:45:44 +0200 |
commit | 2989628b7913383b39ac34c7db8666a21f8e5037 (patch) | |
tree | ac7759177c04e524e7845143fd685aefb49e810e /client/src/app/shared/shared-main | |
parent | 8e08d415f9473b6b72fef698729453e726da16e7 (diff) | |
download | PeerTube-2989628b7913383b39ac34c7db8666a21f8e5037.tar.gz PeerTube-2989628b7913383b39ac34c7db8666a21f8e5037.tar.zst PeerTube-2989628b7913383b39ac34c7db8666a21f8e5037.zip |
Use HTML config when possible
Diffstat (limited to 'client/src/app/shared/shared-main')
-rw-r--r-- | client/src/app/shared/shared-main/video/video.model.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/client/src/app/shared/shared-main/video/video.model.ts b/client/src/app/shared/shared-main/video/video.model.ts index e7f739bfe..ab8ed9051 100644 --- a/client/src/app/shared/shared-main/video/video.model.ts +++ b/client/src/app/shared/shared-main/video/video.model.ts | |||
@@ -1,13 +1,11 @@ | |||
1 | import { AuthUser } from '@app/core' | 1 | import { AuthUser } from '@app/core' |
2 | import { User } from '@app/core/users/user.model' | 2 | import { User } from '@app/core/users/user.model' |
3 | import { durationToString, getAbsoluteAPIUrl, getAbsoluteEmbedUrl } from '@app/helpers' | 3 | import { durationToString, getAbsoluteAPIUrl, getAbsoluteEmbedUrl } from '@app/helpers' |
4 | import { Account } from '@app/shared/shared-main/account/account.model' | ||
5 | import { Actor } from '@app/shared/shared-main/account/actor.model' | 4 | import { Actor } from '@app/shared/shared-main/account/actor.model' |
6 | import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model' | ||
7 | import { peertubeTranslate } from '@shared/core-utils/i18n' | 5 | import { peertubeTranslate } from '@shared/core-utils/i18n' |
8 | import { | 6 | import { |
9 | ActorImage, | 7 | ActorImage, |
10 | ServerConfig, | 8 | HTMLServerConfig, |
11 | UserRight, | 9 | UserRight, |
12 | Video as VideoServerModel, | 10 | Video as VideoServerModel, |
13 | VideoConstant, | 11 | VideoConstant, |
@@ -163,7 +161,7 @@ export class Video implements VideoServerModel { | |||
163 | this.pluginData = hash.pluginData | 161 | this.pluginData = hash.pluginData |
164 | } | 162 | } |
165 | 163 | ||
166 | isVideoNSFWForUser (user: User, serverConfig: ServerConfig) { | 164 | isVideoNSFWForUser (user: User, serverConfig: HTMLServerConfig) { |
167 | // Video is not NSFW, skip | 165 | // Video is not NSFW, skip |
168 | if (this.nsfw === false) return false | 166 | if (this.nsfw === false) return false |
169 | 167 | ||