aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-custom-markup
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-07-28 15:32:22 +0200
committerChocobozzz <me@florianbigard.com>2023-07-28 15:37:22 +0200
commit3193ac2c3b0209b87c1347032f7bd21ea651d8e6 (patch)
treeea9e66bb9c53de6798cea68ce192fd898a93b988 /client/src/app/shared/shared-custom-markup
parent65bb29c6d37a96cd0cae738f8dea07f3a3b5bc3d (diff)
downloadPeerTube-3193ac2c3b0209b87c1347032f7bd21ea651d8e6.tar.gz
PeerTube-3193ac2c3b0209b87c1347032f7bd21ea651d8e6.tar.zst
PeerTube-3193ac2c3b0209b87c1347032f7bd21ea651d8e6.zip
Refactor a little bit nsfwPolicyToParam
Diffstat (limited to 'client/src/app/shared/shared-custom-markup')
-rw-r--r--client/src/app/shared/shared-custom-markup/peertube-custom-tags/channel-miniature-markup.component.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/channel-miniature-markup.component.ts b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/channel-miniature-markup.component.ts
index df7cc95a7..4f00eabd3 100644
--- a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/channel-miniature-markup.component.ts
+++ b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/channel-miniature-markup.component.ts
@@ -84,7 +84,9 @@ export class ChannelMiniatureMarkupComponent implements CustomMarkupComponent, O
84 return this.userService.getAnonymousOrLoggedUser() 84 return this.userService.getAnonymousOrLoggedUser()
85 .pipe( 85 .pipe(
86 map(user => user.nsfwPolicy), 86 map(user => user.nsfwPolicy),
87 switchMap(nsfwPolicy => this.videoService.getVideoChannelVideos({ ...videoOptions, nsfwPolicy })) 87 switchMap(nsfwPolicy => {
88 return this.videoService.getVideoChannelVideos({ ...videoOptions, nsfw: this.videoService.nsfwPolicyToParam(nsfwPolicy) })
89 })
88 ) 90 )
89 } 91 }
90} 92}