Skip to content

fix(feeds): refresh corrected publication dates on existing posts - #183

Merged
icco merged 1 commit into
mainfrom
fix/refresh-feed-post-dates
Oct 11, 2026
Merged

icco merged 1 commit into
mainfrom
fix/refresh-feed-post-dates

Conversation

@icco

@icco icco commented Oct 11, 2026

Copy link
Copy Markdown
Owner

Why

Robbie Lyman’s feed now dates “Extend Lua with Zig 1” October 6, 2026, but robot.villas retains September 30, 2027 because existing GUIDs are skipped. Refresh valid feed-supplied publication dates in one batched update without reposting or changing IDs, grabbed times, titles, or hashtags. Missing/invalid dates cannot erase known dates.

Verified: 319 database-backed tests, lint/typecheck, production build, and feed validation passed. Added coverage for corrections, missing dates, bot isolation, deleted posts, duplicate GUIDs, and RSS/Atom date precedence and offsets.

Risks

Corrections require a feed response with a body; HTTP 304 cannot refresh dates. Already-delivered remote copies are not updated. No schema migration is needed.

Copilot AI balanced review requested due to automatic review settings October 11, 2026 01:03
@icco icco self-assigned this Oct 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The implementation is scoped, preserves existing post identity, and comprehensively tests the stated edge cases.

0 open findings

What changed in this PR

Refreshes publication dates for existing feed posts without changing identity, ingestion metadata, or triggering new ActivityPub deliveries.

Changes:

  • Adds batched, bot-scoped publication-date updates.
  • Integrates refreshes into feed publishing.
  • Adds database, publisher, RSS/Atom tests and operational documentation.
File Description
src/​lib/​publisher.ts Refreshes dates before deduplicating entries.
src/​lib/​db.ts Implements validated batched date updates.
src/​lib/​__tests__/​rss.test.ts Covers date precedence and timezone parsing.
src/​lib/​__tests__/​publisher.test.ts Verifies refresh integration.
src/​lib/​__tests__/​db.test.ts Covers update behavior and isolation.
docs/​operations.md Documents refresh semantics and limitations.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@icco
icco merged commit 207f903 into main Oct 11, 2026
10 checks passed
@icco
icco deleted the fix/refresh-feed-post-dates branch October 11, 2026 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants