mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-03 10:38:40 +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)
|
CommentEntity? comment = await this.database.Comments.Include(c => c.TargetUser)
|
||||||
.Include(c => c.TargetSlot)
|
.Include(c => c.TargetSlot)
|
||||||
.Include(c => c.TargetSlot!.Creator)
|
.ThenInclude(s => s!.Creator)
|
||||||
.FirstOrDefaultAsync(c => c.CommentId == commentId);
|
.FirstOrDefaultAsync(c => c.CommentId == commentId);
|
||||||
if (comment == null) return this.Redirect("~/404");
|
if (comment == null) return this.Redirect("~/404");
|
||||||
if (comment.Deleted) return this.Redirect(callbackUrl ?? "~/");
|
if (comment.Deleted) return this.Redirect(callbackUrl ?? "~/");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue