Fix report urls

This commit is contained in:
jvyden 2022-07-27 16:58:18 -04:00
parent 5c47a52c70
commit 82c5a80f32
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
3 changed files with 4 additions and 4 deletions

View file

@ -49,7 +49,7 @@ public class ReportController : ControllerBase
await WebhookHelper.SendWebhook( await WebhookHelper.SendWebhook(
title: "New grief report", title: "New grief report",
description: $"Submitted by {user.Username}\n" + description: $"Submitted by {user.Username}\n" +
$"To view it, click [here]({ServerConfiguration.Instance.ExternalUrl}/admin/report/{report.ReportId}).", $"To view it, click [here]({ServerConfiguration.Instance.ExternalUrl}/moderation/report/{report.ReportId}).",
dest: WebhookHelper.WebhookDestination.Moderation dest: WebhookHelper.WebhookDestination.Moderation
); );

View file

@ -42,11 +42,11 @@
</div> </div>
<br> <br>
<a class="ui green small button" href="/admin/report/@Model.ReportId/dismiss"> <a class="ui green small button" href="/moderation/report/@Model.ReportId/dismiss">
<i class="checkmark icon"></i> <i class="checkmark icon"></i>
<span>Dismiss</span> <span>Dismiss</span>
</a> </a>
<a class="ui red small button" href="/admin/report/@Model.ReportId/remove"> <a class="ui red small button" href="/moderation/report/@Model.ReportId/remove">
<i class="trash icon"></i> <i class="trash icon"></i>
<span>Remove all related assets</span> <span>Remove all related assets</span>
</a> </a>

View file

@ -1,4 +1,4 @@
@page "/admin/report/{reportId:int}" @page "/moderation/report/{reportId:int}"
@model LBPUnion.ProjectLighthouse.Servers.Website.Pages.ReportPage @model LBPUnion.ProjectLighthouse.Servers.Website.Pages.ReportPage
@{ @{