Apply suggestions from code review
Some checks failed
Continuous Integration / Build & Test (push) Has been cancelled

This commit is contained in:
sudokoko 2024-11-05 00:02:11 -05:00
parent b4017e2e39
commit d1ed4f5144
No known key found for this signature in database
GPG key ID: 6175F987582798FA

View file

@ -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 ?? "~/");