]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix "no results" on overview page
authorChocobozzz <me@florianbigard.com>
Mon, 17 Sep 2018 08:28:38 +0000 (10:28 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 17 Sep 2018 08:28:38 +0000 (10:28 +0200)
client/src/app/shared/overview/overview.service.ts
server/initializers/constants.ts

index 4a4714af62eb23ba4618c3afce3445e7d8b50b99..097079e6d73a88e21cd3d6874b3c39e086c964ec 100644 (file)
@@ -56,6 +56,8 @@ export class OverviewService {
       }
     }
 
+    if (observables.length === 0) return of(videosOverviewResult)
+
     return forkJoin(observables)
       .pipe(
         // Translate categories
index 2e0b32ce2731b735c9b6f46e9ad40f92dcd831a0..02363352ec5250cfe9febe6fd19e104833789245 100644 (file)
@@ -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()