Commit 70a78f0
fix(schema): stop fabricating VideoObject uploadDate from git info and now (#20904)
video-entity.html was the one schema collector still holding the pattern
the rest of this PR removes: uploadDate fell back to .GitInfo.AuthorDate
and then to now() whenever a page had no front-matter date, fabricating an
upload date from a "last touched" timestamp (or, on a shallow CI checkout,
stamping every dateless page as uploaded today).
uploadDate is required for VideoObject, so unlike datePublished it can't
simply be omitted. Instead the entity is skipped entirely when there's no
explicit front-matter date, and the date now comes only from .PublishDate
(which resolves front-matter date/publishDate) rather than .Date, whose
resolution chain can reach the lastmod key. graph-builder.html already
guards against an empty collector result, so a skipped entity is a no-op
in the @graph.
Co-authored-by: claude[bot] <claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent 0eef03f commit 70a78f0
1 file changed
Lines changed: 17 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
33 | 49 | | |
34 | 50 | | |
35 | 51 | | |
36 | 52 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| |||
0 commit comments