aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-27 13:53:42 +0200
committerChocobozzz <me@florianbigard.com>2022-06-27 13:53:42 +0200
commit83b1b7eaf1c04837f92de497e74895bee808eb83 (patch)
tree5b7d727ffdd90d5cfdcef5dc36cad4a2fdd38def /client/src/app/shared/shared-main
parent3a54605d4e7ec5b4f47131e8d23255be35b7beac (diff)
parent5079082d0d94b9e91e8bb75f877d93e54e77b647 (diff)
downloadPeerTube-83b1b7eaf1c04837f92de497e74895bee808eb83.tar.gz
PeerTube-83b1b7eaf1c04837f92de497e74895bee808eb83.tar.zst
PeerTube-83b1b7eaf1c04837f92de497e74895bee808eb83.zip
Merge branch 'release/4.2.0' into develop
Diffstat (limited to 'client/src/app/shared/shared-main')
-rw-r--r--client/src/app/shared/shared-main/video/video.service.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/client/src/app/shared/shared-main/video/video.service.ts b/client/src/app/shared/shared-main/video/video.service.ts
index 7810c4303..4fbc4f7f6 100644
--- a/client/src/app/shared/shared-main/video/video.service.ts
+++ b/client/src/app/shared/shared-main/video/video.service.ts
@@ -438,14 +438,14 @@ export class VideoService {
438 438
439 if (skipCount) newParams = newParams.set('skipCount', skipCount + '') 439 if (skipCount) newParams = newParams.set('skipCount', skipCount + '')
440 440
441 if (isLocal) newParams = newParams.set('isLocal', isLocal) 441 if (isLocal !== undefined) newParams = newParams.set('isLocal', isLocal)
442 if (include) newParams = newParams.set('include', include) 442 if (include !== undefined) newParams = newParams.set('include', include)
443 if (isLive) newParams = newParams.set('isLive', isLive) 443 if (isLive !== undefined) newParams = newParams.set('isLive', isLive)
444 if (nsfw) newParams = newParams.set('nsfw', nsfw) 444 if (nsfw !== undefined) newParams = newParams.set('nsfw', nsfw)
445 if (nsfwPolicy) newParams = newParams.set('nsfw', this.nsfwPolicyToParam(nsfwPolicy)) 445 if (nsfwPolicy !== undefined) newParams = newParams.set('nsfw', this.nsfwPolicyToParam(nsfwPolicy))
446 if (languageOneOf) newParams = this.restService.addArrayParams(newParams, 'languageOneOf', languageOneOf) 446 if (languageOneOf !== undefined) newParams = this.restService.addArrayParams(newParams, 'languageOneOf', languageOneOf)
447 if (categoryOneOf) newParams = this.restService.addArrayParams(newParams, 'categoryOneOf', categoryOneOf) 447 if (categoryOneOf !== undefined) newParams = this.restService.addArrayParams(newParams, 'categoryOneOf', categoryOneOf)
448 if (privacyOneOf) newParams = this.restService.addArrayParams(newParams, 'privacyOneOf', privacyOneOf) 448 if (privacyOneOf !== undefined) newParams = this.restService.addArrayParams(newParams, 'privacyOneOf', privacyOneOf)
449 449
450 return newParams 450 return newParams
451 } 451 }