feat: made boards dynamic and save to the db
This commit is contained in:
parent
8ebc78b754
commit
97e4b0026b
14 changed files with 107 additions and 110 deletions
|
@ -1,9 +0,0 @@
|
|||
namespace ImageBoardServerApp.Data;
|
||||
|
||||
public class Boards
|
||||
{
|
||||
private List<PostData> posts = new List<PostData>()
|
||||
{
|
||||
|
||||
};
|
||||
}
|
|
@ -22,7 +22,7 @@ public class TheManager
|
|||
|
||||
public static long getBumpValue(PostData post)
|
||||
{
|
||||
return (post.IsSticky ? 999999999999999999 : 10 * 60000 - getDiff(post) + ( 60000 * (post.Comments.Count + 1))) ;
|
||||
return (post.IsSticky ? 999999999999999999 + getDiff(post) : 10 * 60000 - getDiff(post) + ( 60000 * (post.Comments.Count + 1))) ;
|
||||
}
|
||||
|
||||
public static async Task<List<PostData>> getPostList(string boardTag)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue