diff options
Diffstat (limited to 'internal/federation/federatingprotocol.go')
| -rw-r--r-- | internal/federation/federatingprotocol.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/internal/federation/federatingprotocol.go b/internal/federation/federatingprotocol.go index 2f6953257..990ce6a52 100644 --- a/internal/federation/federatingprotocol.go +++ b/internal/federation/federatingprotocol.go @@ -227,12 +227,13 @@ func (f *Federator) AuthenticatePostInbox(ctx context.Context, w http.ResponseWr pubKeyAuth, errWithCode := f.AuthenticateFederatedRequest(ctx, receiver.Username) if errWithCode != nil { - // Check if we got an error code from a remote + // Check if we got code 410 Gone from a remote // instance while trying to dereference the pub - // key owner who's trying to post to this inbox. + // key owner who's trying to post to this inbox, + // or if we already had a tombstone stored for them. if gtserror.StatusCode(errWithCode) == http.StatusGone { - // If the pub key owner's key/account has gone - // (410) then likely inbox post was a Delete. + // If the pub key owner's key/account has + // gone, then inbox post was likely a Delete. // // If so, we can just write 202 and leave, as // either we'll have already processed any Deletes |
