Write posted_at from fediverse post to pages row #33
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
FediversePost::publishedAtcarries the timestamp of the fediverse post that surfaced the URL. This is a freshness signal — a URL shared on Mastodon yesterday is more interesting than one shared three years ago.Currently
UrlDiscoveredListenercallsRegisterDiscoveredPageActionwhich does afirstOrCreateonpagesbut never writesposted_at. The field exists on the schema but is always null.Acceptance criteria
UrlDiscoveredevent already carriesdiscoveredAt(aCarbonImmutable). Use this asposted_aton thepagesrow — set it on INSERT only (don't overwrite if the page was previously discovered via a different post)RegisterDiscoveredPageAction(orUrlDiscoveredListener) updated to passposted_atas a create-only attribute infirstOrCreateposted_atis set on first discovery; re-discovery from a different instance does NOT overwriteposted_atNotes
discoveredAtonUrlDiscovered≈ the poll time, not the original post time.FediversePost::publishedAtis the actual post timestamp but it's not currently threaded through to the event. Decide at implementation: usediscoveredAt(simpler, already available) or threadpublishedAtthrough (more accurate). Document the decision.posted_atwill later inform ranking (fresher = higher) and re-crawl priority.