Skip to content

Commit

Permalink
otd: skip hidden files and videos (fix #1229)
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <[email protected]>
  • Loading branch information
pulsejet committed Jun 21, 2024
1 parent f2ae720 commit 7dc6c7f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/top-matter/OnThisDay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ export default defineComponent({
let currentText = '';
for (const photo of photos) {
// Skip hidden files
if (photo.ishidden) continue;
if (photo.basename?.startsWith('.')) continue;
// Skip videos for now (strange bugs)
if (photo.isvideo) continue;
// Get year and text for this photo
const dateTaken = utils.dayIdToDate(photo.dayid);
const year = dateTaken.getUTCFullYear();
photo.key = `${photo.fileid}`;
Expand Down

0 comments on commit 7dc6c7f

Please sign in to comment.