!INFO: tried to move to postgreSQL did not work
fix: fixed bumping, fixed banning from Reports Menu feat: improved homepage, finilized comments and posts, moved version from nav menu to sidebar Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
7bd31ea7b5
commit
73be698399
12 changed files with 188 additions and 47 deletions
|
@ -118,7 +118,7 @@
|
|||
return;
|
||||
}
|
||||
int userID = foundusr.UserID;
|
||||
if (DateTimeOffset.Now.ToUnixTimeMilliseconds() - foundusr.TimeBanned < 0)
|
||||
if (DateTimeOffset.Now.ToUnixTimeMilliseconds() - foundusr.TimeBanned > 0)
|
||||
{
|
||||
foundusr.TimeBanned = -1;
|
||||
}
|
||||
|
@ -127,7 +127,7 @@
|
|||
{
|
||||
var dt = TheManager.ConvertToDateTime(foundusr.TimeBanned);
|
||||
hasErr = true;
|
||||
postErr = "You are banned for " + foundusr.BanReason + " and may not comment until " + dt.Year + "." + dt.Month + "." + dt.Day + " " + dt.Hour + ":" + dt.Minute + "::" + dt.Second;
|
||||
postErr = "You are banned for \"" + foundusr.BanReason + "\" and may not comment until " + dt.Year + "." + dt.Month + "." + dt.Day + " " + dt.Hour + ":" + dt.Minute + "::" + dt.Second;
|
||||
return;
|
||||
}
|
||||
foundusr.lastActionTimeStamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
return;
|
||||
}
|
||||
int userID = foundusr.UserID;
|
||||
if (DateTimeOffset.Now.ToUnixTimeMilliseconds() - foundusr.TimeBanned < 0)
|
||||
if (DateTimeOffset.Now.ToUnixTimeMilliseconds() - foundusr.TimeBanned > 0)
|
||||
{
|
||||
foundusr.TimeBanned = -1;
|
||||
}
|
||||
|
@ -133,7 +133,7 @@
|
|||
{
|
||||
var dt = TheManager.ConvertToDateTime(foundusr.TimeBanned);
|
||||
hasErr = true;
|
||||
postErr = "You are banned for " + foundusr.BanReason + " and may not post until " + dt.Year + "." + dt.Month + "." + dt.Day + " " + dt.Hour + ":" + dt.Minute + "::" + dt.Second;
|
||||
postErr = "You are banned for \"" + foundusr.BanReason + "\" and may not post until " + dt.Year + "." + dt.Month + "." + dt.Day + " " + dt.Hour + ":" + dt.Minute + "::" + dt.Second;
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -153,7 +153,6 @@
|
|||
foundusr.LastUsedName = postUsername;
|
||||
await UsersRepository.updateUserAsync(foundusr);
|
||||
|
||||
|
||||
//TODO Add check if data is image
|
||||
|
||||
if (selectedFile == null || selectedFile.Size >= 512000 * 2 * 10)
|
||||
|
@ -198,11 +197,11 @@
|
|||
shouldAnon = postAnon
|
||||
};
|
||||
int postId = await PostsRepository.createPostAsync(postToPost);
|
||||
await TheManager.bumpThreads(board);
|
||||
if (postId != -1)
|
||||
{
|
||||
//Open post successfull
|
||||
NavigationManager.NavigateTo($"/{board.Tag}/thread/{postId}", true, true);
|
||||
await TheManager.bumpThreads(board);
|
||||
Console.WriteLine("Post created");
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue