summaryrefslogtreecommitdiff
path: root/internal/processing/streaming/authorize.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/streaming/authorize.go')
-rw-r--r--internal/processing/streaming/authorize.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/processing/streaming/authorize.go b/internal/processing/streaming/authorize.go
index 70e4741e1..cb152b676 100644
--- a/internal/processing/streaming/authorize.go
+++ b/internal/processing/streaming/authorize.go
@@ -40,8 +40,8 @@ func (p *processor) AuthorizeStreamingRequest(ctx context.Context, accessToken s
return nil, gtserror.NewErrorUnauthorized(err)
}
- user := &gtsmodel.User{}
- if err := p.db.GetByID(ctx, uid, user); err != nil {
+ user, err := p.db.GetUserByID(ctx, uid)
+ if err != nil {
if err == db.ErrNoEntries {
err := fmt.Errorf("no user found for validated uid %s", uid)
return nil, gtserror.NewErrorUnauthorized(err)