From f45b020699cd888ebdc9eff4be9f7eeddeb82aa9 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sun, 14 Jul 2024 20:41:05 +0200 Subject: [PATCH] [backend/masto-api] Fix hideInaccessible not being respected in streaming connection updates --- Iceshrimp.Backend/Controllers/Mastodon/WebSocketController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Iceshrimp.Backend/Controllers/Mastodon/WebSocketController.cs b/Iceshrimp.Backend/Controllers/Mastodon/WebSocketController.cs index 09493003..b5ddcf17 100644 --- a/Iceshrimp.Backend/Controllers/Mastodon/WebSocketController.cs +++ b/Iceshrimp.Backend/Controllers/Mastodon/WebSocketController.cs @@ -54,8 +54,8 @@ public class WebSocketController( private async Task 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");