File tree 1 file changed +13
-7
lines changed
1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ export default {
429
429
return async (offset : any , limit : any ) => {
430
430
let res = null ;
431
431
// Handle backend query depending on page
432
- if (this .isFavPage ) {
432
+ if (this .isFavPage ) {
433
433
// Favourites Page
434
434
res = await backendApi
435
435
.favoritesVideos (this .$store .state .userdata .jwt , {
@@ -446,13 +446,19 @@ export default {
446
446
// Home Page
447
447
res = await backendApi
448
448
.videos ({
449
- ... query ,
450
- org: this .$store .state .currentOrg .name ,
451
- limit ,
452
- offset ,
453
- });
449
+ ... query ,
450
+ org: this .$store .state .currentOrg .name ,
451
+ limit ,
452
+ offset ,
453
+ });
454
+ }
455
+ // Handle collab tab
456
+ if (this .tab === this .Tabs .COLLABS ) {
457
+ res .data .items = res .data .items .filter (
458
+ // Filter only for videos with mentions (collabs)
459
+ (obj ) => (Array .isArray (obj .mentions ) && obj .mentions .length > 0 ),
460
+ );
454
461
}
455
-
456
462
return res ?.data ;
457
463
};
458
464
},
You can’t perform that action at this time.
0 commit comments