[bugfix] Carry-over "PinnedAt" when refreshing status (#3373)

This commit is contained in:
tobi 2024-09-29 14:46:52 +02:00 committed by GitHub
parent 095663f5cc
commit 43e443f9f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -516,10 +516,12 @@ func (d *Dereferencer) enrichStatus(
latestStatus.ID = status.ID latestStatus.ID = status.ID
} }
// Carry-over values and set fetch time. // Set latest fetch time and carry-
latestStatus.UpdatedAt = status.UpdatedAt // over some values from "old" status.
latestStatus.FetchedAt = time.Now() latestStatus.FetchedAt = time.Now()
latestStatus.UpdatedAt = status.UpdatedAt
latestStatus.Local = status.Local latestStatus.Local = status.Local
latestStatus.PinnedAt = status.PinnedAt
// Carry-over approvals. Remote instances might not yet // Carry-over approvals. Remote instances might not yet
// serve statuses with the `approved_by` field, but we // serve statuses with the `approved_by` field, but we