aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-27 13:51:46 +0200
committerChocobozzz <me@florianbigard.com>2022-06-27 13:51:46 +0200
commit5079082d0d94b9e91e8bb75f877d93e54e77b647 (patch)
tree7ded1116281ae491a6e1499dc33cb72018d3c74b /client/src/app
parent41e74ec9cd6076109c91128047d8b866c36a3005 (diff)
downloadPeerTube-5079082d0d94b9e91e8bb75f877d93e54e77b647.tar.gz
PeerTube-5079082d0d94b9e91e8bb75f877d93e54e77b647.tar.zst
PeerTube-5079082d0d94b9e91e8bb75f877d93e54e77b647.zip
Fix boolean data attributes in homepage
Diffstat (limited to 'client/src/app')
-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 142367506..9efa1a24e 100644
--- a/client/src/app/shared/shared-main/video/video.service.ts
+++ b/client/src/app/shared/shared-main/video/video.service.ts
@@ -423,14 +423,14 @@ export class VideoService {
423 423
424 if (skipCount) newParams = newParams.set('skipCount', skipCount + '') 424 if (skipCount) newParams = newParams.set('skipCount', skipCount + '')
425 425
426 if (isLocal) newParams = newParams.set('isLocal', isLocal) 426 if (isLocal !== undefined) newParams = newParams.set('isLocal', isLocal)
427 if (include) newParams = newParams.set('include', include) 427 if (include !== undefined) newParams = newParams.set('include', include)
428 if (isLive) newParams = newParams.set('isLive', isLive) 428 if (isLive !== undefined) newParams = newParams.set('isLive', isLive)
429 if (nsfw) newParams = newParams.set('nsfw', nsfw) 429 if (nsfw !== undefined) newParams = newParams.set('nsfw', nsfw)
430 if (nsfwPolicy) newParams = newParams.set('nsfw', this.nsfwPolicyToParam(nsfwPolicy)) 430 if (nsfwPolicy !== undefined) newParams = newParams.set('nsfw', this.nsfwPolicyToParam(nsfwPolicy))
431 if (languageOneOf) newParams = this.restService.addArrayParams(newParams, 'languageOneOf', languageOneOf) 431 if (languageOneOf !== undefined) newParams = this.restService.addArrayParams(newParams, 'languageOneOf', languageOneOf)
432 if (categoryOneOf) newParams = this.restService.addArrayParams(newParams, 'categoryOneOf', categoryOneOf) 432 if (categoryOneOf !== undefined) newParams = this.restService.addArrayParams(newParams, 'categoryOneOf', categoryOneOf)
433 if (privacyOneOf) newParams = this.restService.addArrayParams(newParams, 'privacyOneOf', privacyOneOf) 433 if (privacyOneOf !== undefined) newParams = this.restService.addArrayParams(newParams, 'privacyOneOf', privacyOneOf)
434 434
435 return newParams 435 return newParams
436 } 436 }