Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix "no results" on overview page

Chocobozzz860cfb31e343
diff --git a/client/src/app/shared/overview/overview.service.ts b/client/src/app/shared/overview/overview.service.ts
index 4a4714af62..097079e6d7 100644
--- a/client/src/app/shared/overview/overview.service.ts
+++ b/client/src/app/shared/overview/overview.service.ts
@@ -56,6 +56,8 @@ export class OverviewService {
}
}
+ if (observables.length === 0) return of(videosOverviewResult)
+
return forkJoin(observables)
.pipe(
// Translate categories
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 2e0b32ce27..02363352ec 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -660,6 +660,7 @@ if (isTestInstance() === true) {
CACHE.VIDEO_CAPTIONS.MAX_AGE = 3000
MEMOIZE_TTL.OVERVIEWS_SAMPLE = 1
+ ROUTE_CACHE_LIFETIME.OVERVIEWS.VIDEOS = '0'
}
updateWebserverConfig()