mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-04-19 19:14:51 +00:00
Apply suggestions from code review
Some checks failed
Continuous Integration / Build & Test (push) Has been cancelled
Some checks failed
Continuous Integration / Build & Test (push) Has been cancelled
This commit is contained in:
parent
b4017e2e39
commit
d1ed4f5144
1 changed files with 1 additions and 1 deletions
|
@ -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 ?? "~/");
|
||||
|
|
Loading…
Add table
Reference in a new issue