From 0c92ae1367f1844c3ee9094a0972b0bff9cfed77 Mon Sep 17 00:00:00 2001 From: tobi Date: Fri, 13 Sep 2024 13:11:49 +0200 Subject: [PATCH] tweak --- internal/federation/dereferencing/status_permitted.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/federation/dereferencing/status_permitted.go b/internal/federation/dereferencing/status_permitted.go index 4212fc19b..84c65ea91 100644 --- a/internal/federation/dereferencing/status_permitted.go +++ b/internal/federation/dereferencing/status_permitted.go @@ -162,7 +162,7 @@ func (d *Dereferencer) isPermittedReply( // borrow fields from the up-thread rejection. // This collapses the chain beyond the first // rejected reply and allows us to avoid derefing - // lots of statuses we already know we don't want. + // further replies we already know we don't want. statusID := req.StatusID targetAccountID := req.TargetAccountID uri := strings.ReplaceAll(req.URI, req.ID, id) @@ -172,7 +172,7 @@ func (d *Dereferencer) isPermittedReply( StatusID: statusID, TargetAccountID: targetAccountID, InteractingAccountID: status.AccountID, - InteractionURI: status.URI, + InteractionURI: statusURI, InteractionType: gtsmodel.InteractionReply, URI: uri, RejectedAt: time.Now(), @@ -246,7 +246,7 @@ func (d *Dereferencer) isPermittedReply( StatusID: inReplyTo.ID, TargetAccountID: inReplyTo.AccountID, InteractingAccountID: status.AccountID, - InteractionURI: status.URI, + InteractionURI: statusURI, InteractionType: gtsmodel.InteractionReply, URI: uris.GenerateURIForReject(inReplyTo.Account.Username, id), RejectedAt: time.Now(),