summaryrefslogtreecommitdiff
path: root/internal/federation/dereferencing/status.go
diff options
context:
space:
mode:
authorLibravatar kim <grufwub@gmail.com>2025-06-21 12:03:35 +0200
committerLibravatar kim <gruf@noreply.codeberg.org>2025-06-21 12:03:35 +0200
commit80191348ba27915d40e885dc66b4df67fcf9c73e (patch)
tree2b1e4e7b8dd6f4a4edd5c1bfd55e4ae15842e1ed /internal/federation/dereferencing/status.go
parent[bugfix] Queue implicit accepts *before* other side effects (#4282) (diff)
downloadgotosocial-80191348ba27915d40e885dc66b4df67fcf9c73e.tar.xz
[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 <grufwub@gmail.com> Co-committed-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal/federation/dereferencing/status.go')
-rw-r--r--internal/federation/dereferencing/status.go4
1 files changed, 3 insertions, 1 deletions
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