diff options
author | 2024-08-25 15:44:08 +0200 | |
---|---|---|
committer | 2024-08-25 15:44:08 +0200 | |
commit | 2bd31ab710e12ba5f114950996e7feff16722e87 (patch) | |
tree | 8e26dc7d9b72d0d3747f304bbbc231811c734d05 | |
parent | [bugfix] Let prometheus client do its own compression handling (#3232) (diff) | |
download | gotosocial-2bd31ab710e12ba5f114950996e7feff16722e87.tar.xz |
[chore] Tiny tweak to ApprovedByURI (#3234)
-rw-r--r-- | internal/federation/dereferencing/status.go | 4 |
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. |