diff --git a/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor b/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor index 0cf2810..df0a2c2 100644 --- a/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor +++ b/ImageBoardServerApp/Shared/Components/Forms/CommentForm.razor @@ -106,6 +106,14 @@ return; } + BoardData b = await BoardsRepository.getBoardByTagAsync(post.Board); + if (b.isLocked) + { + hasErr = true; + postErr = "This board is currently locked."; + return; + } + bool hasImage = selectedFile != null; if (postUsername == null || postUsername == "") { diff --git a/ImageBoardServerApp/Shared/Components/Forms/PostForm.razor b/ImageBoardServerApp/Shared/Components/Forms/PostForm.razor index 99c9c41..24e8451 100644 --- a/ImageBoardServerApp/Shared/Components/Forms/PostForm.razor +++ b/ImageBoardServerApp/Shared/Components/Forms/PostForm.razor @@ -29,7 +29,7 @@