summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-08-25 15:44:08 +0200
committerLibravatar GitHub <noreply@github.com>2024-08-25 15:44:08 +0200
commit2bd31ab710e12ba5f114950996e7feff16722e87 (patch)
tree8e26dc7d9b72d0d3747f304bbbc231811c734d05
parent[bugfix] Let prometheus client do its own compression handling (#3232) (diff)
downloadgotosocial-2bd31ab710e12ba5f114950996e7feff16722e87.tar.xz
[chore] Tiny tweak to ApprovedByURI (#3234)
-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.