From be69a0ece9eb76ada2da2dd8d3926d6eda9773c9 Mon Sep 17 00:00:00 2001 From: kim Date: Tue, 24 Dec 2024 20:36:49 +0000 Subject: [PATCH] specifically allowed updated to be equal to published --- internal/typeutils/astointernal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/typeutils/astointernal.go b/internal/typeutils/astointernal.go index cfaadb8e6..a473317ff 100644 --- a/internal/typeutils/astointernal.go +++ b/internal/typeutils/astointernal.go @@ -364,7 +364,7 @@ func (c *Converter) ASStatusToStatus(ctx context.Context, statusable ap.Statusab // status.Updated // // Extract and validate update time for status. Defaults to published. - if upd := ap.GetUpdated(statusable); upd.After(status.CreatedAt) { + if upd := ap.GetUpdated(statusable); !upd.Before(status.CreatedAt) { status.UpdatedAt = upd } else if upd.IsZero() { status.UpdatedAt = status.CreatedAt