summaryrefslogtreecommitdiff
path: root/internal/processing
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2025-02-19 18:09:54 +0100
committerLibravatar GitHub <noreply@github.com>2025-02-19 18:09:54 +0100
commit96716e4f43341beb3431a7caad10d48e6ca844ae (patch)
tree49e0771a80c5ecdf2cfc42969036fa6044382209 /internal/processing
parentadds more code comments and some small code formatting tweaks (#3799) (diff)
downloadgotosocial-96716e4f43341beb3431a7caad10d48e6ca844ae.tar.xz
[feature] Forward-compatibility with Approval objects (#3807)
* vendor * [feature] Forward-compatibility with Approval objects * vendor the thing * fix leetle bug * lil syntax tweak for beloved kimb
Diffstat (limited to 'internal/processing')
-rw-r--r--internal/processing/workers/fromfediapi.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/processing/workers/fromfediapi.go b/internal/processing/workers/fromfediapi.go
index cf93a5ec5..ce5b8b5d1 100644
--- a/internal/processing/workers/fromfediapi.go
+++ b/internal/processing/workers/fromfediapi.go
@@ -844,16 +844,16 @@ func (p *fediAPI) AcceptRemoteStatus(ctx context.Context, fMsg *messages.FromFed
return gtserror.Newf("%T not parseable as *url.URL", fMsg.APObject)
}
- acceptIRI := fMsg.APIRI
- if acceptIRI == nil {
- return gtserror.New("acceptIRI was nil")
+ approvedByURI := fMsg.APIRI
+ if approvedByURI == nil {
+ return gtserror.New("approvedByURI was nil")
}
// Assume we're accepting a status; create a
// barebones status for dereferencing purposes.
bareStatus := &gtsmodel.Status{
URI: objectIRI.String(),
- ApprovedByURI: acceptIRI.String(),
+ ApprovedByURI: approvedByURI.String(),
}
// Call RefreshStatus() to process the provided
@@ -872,7 +872,7 @@ func (p *fediAPI) AcceptRemoteStatus(ctx context.Context, fMsg *messages.FromFed
}
// No error means it was indeed a remote status, and the
- // given acceptIRI permitted it. Timeline and notify it.
+ // given approvedByURI permitted it. Timeline and notify it.
if err := p.surface.timelineAndNotifyStatus(ctx, status); err != nil {
log.Errorf(ctx, "error timelining and notifying status: %v", err)
}