aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-video-comment
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-05-03 15:53:07 +0200
committerChocobozzz <me@florianbigard.com>2021-05-03 16:42:15 +0200
commit1a7d0887b6c22ca6539a15297fd4159d33d7dc48 (patch)
treea6a7c0c55ab0c8af74bb5df7baef13c10cc3ef64 /client/src/app/shared/shared-video-comment
parent1de8740195bedd0d3d43acf69f443f27364e39ce (diff)
downloadPeerTube-1a7d0887b6c22ca6539a15297fd4159d33d7dc48.tar.gz
PeerTube-1a7d0887b6c22ca6539a15297fd4159d33d7dc48.tar.zst
PeerTube-1a7d0887b6c22ca6539a15297fd4159d33d7dc48.zip
Refactor parseQueryStringFilter boolean handler
Diffstat (limited to 'client/src/app/shared/shared-video-comment')
-rw-r--r--client/src/app/shared/shared-video-comment/video-comment.service.ts8
1 files changed, 1 insertions, 7 deletions
diff --git a/client/src/app/shared/shared-video-comment/video-comment.service.ts b/client/src/app/shared/shared-video-comment/video-comment.service.ts
index 0f09778df..c5aeb3c12 100644
--- a/client/src/app/shared/shared-video-comment/video-comment.service.ts
+++ b/client/src/app/shared/shared-video-comment/video-comment.service.ts
@@ -190,13 +190,7 @@ export class VideoCommentService {
190 const filters = this.restService.parseQueryStringFilter(search, { 190 const filters = this.restService.parseQueryStringFilter(search, {
191 isLocal: { 191 isLocal: {
192 prefix: 'local:', 192 prefix: 'local:',
193 isBoolean: true, 193 isBoolean: true
194 handler: v => {
195 if (v === 'true') return v
196 if (v === 'false') return v
197
198 return undefined
199 }
200 }, 194 },
201 195
202 searchAccount: { prefix: 'account:' }, 196 searchAccount: { prefix: 'account:' },