From 80191348ba27915d40e885dc66b4df67fcf9c73e Mon Sep 17 00:00:00 2001 From: kim Date: Sat, 21 Jun 2025 12:03:35 +0200 Subject: [bugfix] fix status.Local sometimes being nil (#4285) also comments-out a flaky test, (or at-least part of it), since it's testing a pkg part that is already tested. Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4285 Co-authored-by: kim Co-committed-by: kim --- internal/federation/dereferencing/status.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/federation') diff --git a/internal/federation/dereferencing/status.go b/internal/federation/dereferencing/status.go index ce1ee2457..0e86dca7c 100644 --- a/internal/federation/dereferencing/status.go +++ b/internal/federation/dereferencing/status.go @@ -518,9 +518,11 @@ func (d *Dereferencer) enrichStatus( // Set latest fetch time and carry- // over some values from "old" status. latestStatus.FetchedAt = time.Now() - latestStatus.Local = status.Local latestStatus.PinnedAt = status.PinnedAt + // These will always be remote. + latestStatus.Local = new(bool) + // Carry-over approvals. Remote instances might not yet // serve statuses with the `approved_by` field, but we // might have marked a status as pre-approved on our side -- cgit v1.3