feat: added /sys/ to all system pages, edited 404 page, added deadlink, moar changes

This commit is contained in:
limited_dev 2023-02-12 17:01:46 +01:00
parent 2d458fd2f2
commit 0279df06fa
24 changed files with 90 additions and 41 deletions

View file

@ -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.");

View file

@ -5,9 +5,9 @@
<br/>
<div>
<span>Read the </span>
<a href="/rules">rules</a>
<a href="/sys/rules">rules</a>
<span> and </span>
<a href="/faq">faq</a>
<a href="/sys/faq">faq</a>
<span> before posting</span>
</div>
</div>

View file

@ -105,7 +105,7 @@
//Maybe redirect to /banned?
return;
}
foundusr.lastActionTimeStamp = DateTimeOffset.UnixEpoch.ToUnixTimeMilliseconds();
foundusr.lastActionTimeStamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
await UsersRepository.updateUserAsync(foundusr);