diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-27 08:51:40 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-27 08:51:40 +0200 |
commit | d6e32a2e91c090ed342eaf0709caac2630a67ff3 (patch) | |
tree | a461a7cedeb87a992f2a6f476fff78e346f00b5d /client/src/app/videos/video-list/video-miniature.component.ts | |
parent | c2962505115563ad1510e8116f3b362887cac71f (diff) | |
download | PeerTube-d6e32a2e91c090ed342eaf0709caac2630a67ff3.tar.gz PeerTube-d6e32a2e91c090ed342eaf0709caac2630a67ff3.tar.zst PeerTube-d6e32a2e91c090ed342eaf0709caac2630a67ff3.zip |
Replace NSFW with "mature or explicit content"
Blur their thumbnail and name
Diffstat (limited to 'client/src/app/videos/video-list/video-miniature.component.ts')
-rw-r--r-- | client/src/app/videos/video-list/video-miniature.component.ts | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/client/src/app/videos/video-list/video-miniature.component.ts b/client/src/app/videos/video-list/video-miniature.component.ts index 8d8b817ee..18434dad2 100644 --- a/client/src/app/videos/video-list/video-miniature.component.ts +++ b/client/src/app/videos/video-list/video-miniature.component.ts | |||
@@ -13,14 +13,6 @@ export class VideoMiniatureComponent { | |||
13 | @Input() user: User | 13 | @Input() user: User |
14 | @Input() video: Video | 14 | @Input() video: Video |
15 | 15 | ||
16 | getVideoName () { | ||
17 | if (this.isVideoNSFWForThisUser()) { | ||
18 | return 'NSFW' | ||
19 | } | ||
20 | |||
21 | return this.video.name | ||
22 | } | ||
23 | |||
24 | isVideoNSFWForThisUser () { | 16 | isVideoNSFWForThisUser () { |
25 | return this.video.isVideoNSFWForUser(this.user) | 17 | return this.video.isVideoNSFWForUser(this.user) |
26 | } | 18 | } |