diff options
author | 2023-11-21 10:35:30 +0000 | |
---|---|---|
committer | 2023-11-21 11:35:30 +0100 | |
commit | 42d8011ff4f10664a853c483685db8e97b7a3118 (patch) | |
tree | c0ea4d930add2363312766da7da35c4e846aa3e6 /internal/processing/fedi/status.go | |
parent | [feature] Initial Prometheus metrics implementation (#2334) (diff) | |
download | gotosocial-42d8011ff4f10664a853c483685db8e97b7a3118.tar.xz |
[chore/security] refactor AuthenticateFederatedRequest() to handle account deref + suspension checks (#2371)
* refactor AuthenticateFederatedRequest() to handle account suspension + fetching of owner
* small fixups
* small changes
* revert to 'IsEitherBlocked' instead of just 'IsBlocked" :grimace:
* update code comment to indicate that AuthenticateFederatedRequest() will handle account + instance dereferencing
Diffstat (limited to 'internal/processing/fedi/status.go')
-rw-r--r-- | internal/processing/fedi/status.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/internal/processing/fedi/status.go b/internal/processing/fedi/status.go index b8b75841c..8082c79bc 100644 --- a/internal/processing/fedi/status.go +++ b/internal/processing/fedi/status.go @@ -35,7 +35,6 @@ import ( // StatusGet handles the getting of a fedi/activitypub representation of a local status. // It performs appropriate authentication before returning a JSON serializable interface. func (p *Processor) StatusGet(ctx context.Context, requestedUser string, statusID string) (interface{}, gtserror.WithCode) { - // Authenticate using http signature. // Authenticate the incoming request, getting related user accounts. requester, receiver, errWithCode := p.authenticate(ctx, requestedUser) if errWithCode != nil { |