From d1ed4f5144934f723ca5913df9efaa478b686111 Mon Sep 17 00:00:00 2001 From: sudokoko Date: Tue, 5 Nov 2024 00:02:11 -0500 Subject: [PATCH] Apply suggestions from code review --- .../Controllers/Moderator/ModerationRemovalController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectLighthouse.Servers.Website/Controllers/Moderator/ModerationRemovalController.cs b/ProjectLighthouse.Servers.Website/Controllers/Moderator/ModerationRemovalController.cs index 4b0a695a..ec088e13 100644 --- a/ProjectLighthouse.Servers.Website/Controllers/Moderator/ModerationRemovalController.cs +++ b/ProjectLighthouse.Servers.Website/Controllers/Moderator/ModerationRemovalController.cs @@ -58,7 +58,7 @@ public class ModerationRemovalController : ControllerBase CommentEntity? comment = await this.database.Comments.Include(c => c.TargetUser) .Include(c => c.TargetSlot) - .Include(c => c.TargetSlot!.Creator) + .ThenInclude(s => s!.Creator) .FirstOrDefaultAsync(c => c.CommentId == commentId); if (comment == null) return this.Redirect("~/404"); if (comment.Deleted) return this.Redirect(callbackUrl ?? "~/");