ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix bulk finder
Chocobozzz1b9b904c185b
diff --git a/client/src/app/helpers/rxjs.ts b/client/src/app/helpers/rxjs.tsindex f27ff935c1..083610ecb6 100644--- a/client/src/app/helpers/rxjs.ts+++ b/client/src/app/helpers/rxjs.ts@@ -1,6 +1,6 @@import { uniq } from 'lodash-es'-import { Observable, timer } from 'rxjs'-import { buffer, distinctUntilChanged, filter, map, share, switchMap } from 'rxjs/operators'+import { Observable } from 'rxjs'+import { buffer, debounceTime, distinctUntilChanged, filter, map, share, switchMap } from 'rxjs/operators'function buildBulkObservable <P extends number | string, R> (options: {notifierObservable: Observable<P>@@ -11,7 +11,7 @@ function buildBulkObservable <P extends number | string, R> (options: {return notifierObservable.pipe(distinctUntilChanged(),- buffer(timer(time)),+ buffer(notifierObservable.pipe(debounceTime(time))),filter(params => params.length !== 0),map(params => uniq(params)),switchMap(params => {diff --git a/client/src/app/shared/shared-user-subscription/user-subscription.service.ts b/client/src/app/shared/shared-user-subscription/user-subscription.service.tsindex 8779bfcaa1..c46b3b20d6 100644--- a/client/src/app/shared/shared-user-subscription/user-subscription.service.ts+++ b/client/src/app/shared/shared-user-subscription/user-subscription.service.ts@@ -39,7 +39,7 @@ export class UserSubscriptionService {) {this.existsObservable = merge(buildBulkObservable({- time: 500,+ time: 200,notifierObservable: this.existsSubject,bulkGet: this.doSubscriptionsExist.bind(this)}).pipe(map(r => r.response)),diff --git a/client/src/app/shared/shared-video-playlist/video-playlist.service.ts b/client/src/app/shared/shared-video-playlist/video-playlist.service.tsindex c593ceeeb4..3c7414bb79 100644--- a/client/src/app/shared/shared-video-playlist/video-playlist.service.ts+++ b/client/src/app/shared/shared-video-playlist/video-playlist.service.ts@@ -58,7 +58,7 @@ export class VideoPlaylistService {) {this.videoExistsInPlaylistObservable = merge(buildBulkObservable({- time: 5000,+ time: 200,bulkGet: (videoIds: number[]) => {// We added a delay to the request, so ensure the user is still logged inif (this.auth.isLoggedIn()) {