diff --git a/ImageBoardServerApp/Pages/Basic/ThreadPage.razor b/ImageBoardServerApp/Pages/Basic/ThreadPage.razor
index d6c3dfc..a709fe3 100644
--- a/ImageBoardServerApp/Pages/Basic/ThreadPage.razor
+++ b/ImageBoardServerApp/Pages/Basic/ThreadPage.razor
@@ -12,7 +12,9 @@
@if (report.Type == "op")
{
@@ -38,6 +39,8 @@
banReporter(99999999)" href="javascript:void(0)">99M Tage
+
Done
+
@if (report.Type == "op")
{
@@ -59,6 +62,7 @@
UserData user = report.UserReported;
user.TimeBanned = DateTimeOffset.Now.AddDays(days).ToUnixTimeMilliseconds();
await UsersRepository.updateUserAsync(user);
+ await removeReport();
}
private async Task banReporter(int days)
@@ -66,5 +70,12 @@
UserData user = report.UserReporter;
user.TimeBanned = DateTimeOffset.Now.AddDays(days).ToUnixTimeMilliseconds();
await UsersRepository.updateUserAsync(user);
+ await removeReport();
+ }
+
+ private async Task removeReport()
+ {
+ await ReportsRepository.deleteReportAsync(report.ReportID);
+ navigationManager.NavigateTo("/sys/reports", true, true);
}
}
\ No newline at end of file
diff --git a/ImageBoardServerApp/wwwroot/img/static/logo.png b/ImageBoardServerApp/wwwroot/img/static/logo.png
index a0bc58a..4ce8f99 100644
Binary files a/ImageBoardServerApp/wwwroot/img/static/logo.png and b/ImageBoardServerApp/wwwroot/img/static/logo.png differ