feat: started working on stickys and locking, started working on replying in threads, added banners, added autism board, other small changes

This commit is contained in:
limited_dev 2023-02-25 00:08:36 +01:00
parent d8fcc93394
commit 5fdebe3fc1
18 changed files with 132 additions and 35 deletions

View file

@ -98,6 +98,14 @@
foundusr.lastActionTimeStamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
await UsersRepository.updateUserAsync(foundusr);
PostData updatedPost = await PostsRepository.getPostByIdAsync(post.PostID);
if (updatedPost.IsLocked)
{
hasErr = true;
postErr = "This Post is locked.";
return;
}
bool hasImage = selectedFile != null;
CommentData commentToCreate;

View file

@ -146,7 +146,9 @@
Content = postContent,
Interactions = 0,
CreatedAt = DateTimeOffset.Now.ToUnixTimeMilliseconds(),
Board = board.Tag
Board = board.Tag,
IsLocked = false,
IsSticky = false
};
int postId = await PostsRepository.createPostAsync(postToPost);
if (postId != -1)