feat: started working on thread view
This commit is contained in:
parent
6b919e0b7b
commit
585440d10f
5 changed files with 12 additions and 6 deletions
|
@ -31,7 +31,7 @@ public class PostData
|
|||
[Required]
|
||||
public string Content { get; set; }
|
||||
|
||||
public string Interactions { get; set; }
|
||||
public int Interactions { get; set; }
|
||||
|
||||
[Required]
|
||||
public long CreatedAt { get; set; }
|
||||
|
|
|
@ -16,6 +16,7 @@ public static class PostsRepository
|
|||
return await db.Posts
|
||||
.Where(post => post.Board.Equals(board))
|
||||
.Include(post => post.Image)
|
||||
.Include(post => post.Comments)
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue