From bce6c93242ea8517fc2bf915f27c52689979dc56 Mon Sep 17 00:00:00 2001 From: primal Date: Wed, 28 Jan 2026 21:29:44 -0500 Subject: [PATCH] Use original publication date for post createdAt Posts now use the item pub_date for the createdAt field instead of the current time, so posts show their original publication time. Co-Authored-By: Claude Opus 4.5 --- publisher.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/publisher.go b/publisher.go index eea7585..9ddfed0 100644 --- a/publisher.go +++ b/publisher.go @@ -346,12 +346,11 @@ func (p *Publisher) PublishItem(session *PDSSession, item *Item) (string, error) } text := textBuilder.String() - // Use current time for createdAt (Bluesky won't index backdated posts) - // TODO: Restore original pubDate once Bluesky indexing is understood + // Use original publication date if available, otherwise current time createdAt := time.Now() - // if !item.PubDate.IsZero() { - // createdAt = item.PubDate - // } + if !item.PubDate.IsZero() { + createdAt = item.PubDate + } post := BskyPost{ Type: "app.bsky.feed.post",