summaryrefslogtreecommitdiff
path: root/internal/federation/dereferencing/status.go
diff options
context:
space:
mode:
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 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.