diff options
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 | ||