ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix grouped videos by date
Chocobozzz4e0c17936546
diff --git a/client/src/app/shared/video/abstract-video-list.ts b/client/src/app/shared/video/abstract-video-list.tsindex eba05c07d9..8cf21e9d45 100644--- a/client/src/app/shared/video/abstract-video-list.ts+++ b/client/src/app/shared/video/abstract-video-list.ts@@ -167,31 +167,41 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy, DisableForfor (const video of this.videos) {const publishedDate = video.publishedAt- if (currentGroupedDate < GroupDate.TODAY && isToday(publishedDate)) {+ if (currentGroupedDate <= GroupDate.TODAY && isToday(publishedDate)) {+ if (currentGroupedDate === GroupDate.TODAY) continue+currentGroupedDate = GroupDate.TODAYthis.groupedDates[ video.id ] = currentGroupedDatecontinue}- if (currentGroupedDate < GroupDate.YESTERDAY && isYesterday(publishedDate)) {+ if (currentGroupedDate <= GroupDate.YESTERDAY && isYesterday(publishedDate)) {+ if (currentGroupedDate === GroupDate.YESTERDAY) continue+currentGroupedDate = GroupDate.YESTERDAYthis.groupedDates[ video.id ] = currentGroupedDatecontinue}- if (currentGroupedDate < GroupDate.THIS_WEEK && isThisWeek(publishedDate)) {+ if (currentGroupedDate <= GroupDate.THIS_WEEK && isThisWeek(publishedDate)) {+ if (currentGroupedDate === GroupDate.THIS_WEEK) continue+currentGroupedDate = GroupDate.THIS_WEEKthis.groupedDates[ video.id ] = currentGroupedDatecontinue}- if (currentGroupedDate < GroupDate.THIS_MONTH && isThisMonth(publishedDate)) {+ if (currentGroupedDate <= GroupDate.THIS_MONTH && isThisMonth(publishedDate)) {+ if (currentGroupedDate === GroupDate.THIS_MONTH) continue+currentGroupedDate = GroupDate.THIS_MONTHthis.groupedDates[ video.id ] = currentGroupedDatecontinue}- if (currentGroupedDate < GroupDate.OLDER) {+ if (currentGroupedDate <= GroupDate.OLDER) {+ if (currentGroupedDate === GroupDate.OLDER) continue+currentGroupedDate = GroupDate.OLDERthis.groupedDates[ video.id ] = currentGroupedDate}