- You do not have permission to view this menu.
+
@code {
diff --git a/ImageBoardServerApp/Pages/Moderation/ReportsPage.razor b/ImageBoardServerApp/Pages/Moderation/ReportsPage.razor
index 6fd8ae8..7c68791 100644
--- a/ImageBoardServerApp/Pages/Moderation/ReportsPage.razor
+++ b/ImageBoardServerApp/Pages/Moderation/ReportsPage.razor
@@ -1,11 +1,19 @@
-@page "/modmenu/reports"
+@page "/sys/reports"
@using ImageBoardServerApp.Data.Repository
-
Post was not created!
diff --git a/ImageBoardServerApp/Shared/Components/Board.razor b/ImageBoardServerApp/Shared/Components/Board.razor
index 86780e8..3da6734 100644
--- a/ImageBoardServerApp/Shared/Components/Board.razor
+++ b/ImageBoardServerApp/Shared/Components/Board.razor
@@ -16,15 +16,23 @@
Threads
-
-@if (posts.Any())
+@if (posts != null)
{
- @foreach(var post in posts)
+ @if (posts.Any())
{
-
-
+ @foreach(var post in posts)
+ {
+
+
+ }
}
}
+else
+{
+
+ Loading Posts...
+
+}
@code {
diff --git a/ImageBoardServerApp/Shared/Components/Comment.razor b/ImageBoardServerApp/Shared/Components/Comment.razor
index 1225ce6..34b85cf 100644
--- a/ImageBoardServerApp/Shared/Components/Comment.razor
+++ b/ImageBoardServerApp/Shared/Components/Comment.razor
@@ -44,7 +44,7 @@
Delete][
- Report
+ Report]
}
diff --git a/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor b/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor
index 90bf2c6..fd66fbd 100644
--- a/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor
+++ b/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor
@@ -90,7 +90,7 @@
//Maybe redirect to /banned?
return;
}
- foundusr.lastActionTimeStamp = DateTimeOffset.UnixEpoch.ToUnixTimeMilliseconds();
+ foundusr.lastActionTimeStamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
await UsersRepository.updateUserAsync(foundusr);
bool hasImage = selectedFile != null;
@@ -141,7 +141,7 @@
if (commentId == -1)
{
//Open comment unsucessfull
- navigationManager.NavigateTo("/UnSuccessfulPost");
+ navigationManager.NavigateTo("/sys/UnSuccessfulPost");
hasErr = true;
postErr = "There was an error and the comment could not be created. Please notify the admin.";
Console.WriteLine("Shit sucks and did not work.");
diff --git a/ImageBoardServerApp/Shared/Components/Forms/FormInfo.razor b/ImageBoardServerApp/Shared/Components/Forms/FormInfo.razor
index 0e4b85e..e1b7279 100644
--- a/ImageBoardServerApp/Shared/Components/Forms/FormInfo.razor
+++ b/ImageBoardServerApp/Shared/Components/Forms/FormInfo.razor
@@ -5,9 +5,9 @@