[backend/masto-api] Fix hideInaccessible not being respected in streaming connection updates

This commit is contained in:
Laura Hausmann 2024-07-14 20:41:05 +02:00
parent afd977d9ce
commit f45b020699
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -54,8 +54,8 @@ public class WebSocketController(
private async Task<OauthToken> Authenticate(string token)
{
return await db.OauthTokens
.Include(p => p.User)
.ThenInclude(p => p.UserProfile)
.Include(p => p.User.UserProfile)
.Include(p => p.User.UserSettings)
.Include(p => p.App)
.FirstOrDefaultAsync(p => p.Token == token && p.Active) ??
throw GracefulException.Unauthorized("This method requires an authenticated user");