From 2bd31ab710e12ba5f114950996e7feff16722e87 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sun, 25 Aug 2024 15:44:08 +0200 Subject: [PATCH] [chore] Tiny tweak to ApprovedByURI (#3234) --- internal/federation/dereferencing/status.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/federation/dereferencing/status.go b/internal/federation/dereferencing/status.go index 271ced21a..dea544712 100644 --- a/internal/federation/dereferencing/status.go +++ b/internal/federation/dereferencing/status.go @@ -523,7 +523,9 @@ func (d *Dereferencer) enrichStatus( // // If a remote has in the meantime retracted its approval, // the next call to 'isPermittedStatus' will catch that. - latestStatus.ApprovedByURI = status.ApprovedByURI + if latestStatus.ApprovedByURI == "" && status.ApprovedByURI != "" { + latestStatus.ApprovedByURI = status.ApprovedByURI + } // Check if this is a permitted status we should accept. // Function also sets "PendingApproval" bool as necessary.