From e293ac6ae6c5eed3ec1b05482a9ea72ed5b00a4b Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Tue, 30 Jun 2026 16:12:47 +0900 Subject: [PATCH] appview: ingest `createdAt` information from ingester Signed-off-by: Seongmin Lee --- appview/ingester.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/appview/ingester.go b/appview/ingester.go index af522ca3..dc3c648d 100644 --- a/appview/ingester.go +++ b/appview/ingester.go @@ -209,9 +209,15 @@ func (i *Ingester) ingestStar(ctx context.Context, e *jmodels.Event, l *slog.Log record := tangled.FeedStar{} unmarshalErr := json.Unmarshal(raw, &record) + createdAt, parseErr := time.Parse(time.RFC3339, record.CreatedAt) + if parseErr != nil { + createdAt = time.Now() + } + star := models.Star{ - Did: did, - Rkey: e.Commit.RKey, + Did: did, + Rkey: e.Commit.RKey, + Created: createdAt, } switch { -- 2.51.2