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:
parent
d8fcc93394
commit
5fdebe3fc1
18 changed files with 132 additions and 35 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue