diff --git a/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor b/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor index fd66fbd..34f7c16 100644 --- a/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor +++ b/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor @@ -83,6 +83,11 @@ return; } int userID = foundusr.UserID; + if (DateTimeOffset.Now.ToUnixTimeMilliseconds() - foundusr.TimeBanned < 0) + { + foundusr.TimeBanned = -1; + } + if (foundusr.TimeBanned != -1) { hasErr = true; diff --git a/ImageBoardServerApp/Shared/Components/Forms/PostForm.razor b/ImageBoardServerApp/Shared/Components/Forms/PostForm.razor index a46475c..0c7b999 100644 --- a/ImageBoardServerApp/Shared/Components/Forms/PostForm.razor +++ b/ImageBoardServerApp/Shared/Components/Forms/PostForm.razor @@ -98,6 +98,11 @@ return; } int userID = foundusr.UserID; + if (DateTimeOffset.Now.ToUnixTimeMilliseconds() - foundusr.TimeBanned < 0) + { + foundusr.TimeBanned = -1; + } + if (foundusr.TimeBanned != -1) { hasErr = true;