Skip to content

Commit

Permalink
avoid duplication between recent and on this day
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Dec 6, 2022
1 parent e6cc6a5 commit 45afb08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/SmartAlbums/OnThisDayAlbum.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function (Builder $query) use ($today) {
->whereDay('photos.taken_at', '=', $today->day))
->orWhere(fn (Builder $q) => $q
->whereNull('photos.taken_at')
->whereYear('photos.created_at', '<', $today->year)
->whereMonth('photos.created_at', '=', $today->month)
->whereDay('photos.created_at', '=', $today->day));
}
Expand Down

0 comments on commit 45afb08

Please sign in to comment.