We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ca7df2 commit 51f6e2fCopy full SHA for 51f6e2f
exercise.wwwapi/Endpoints/PostEndpoints.cs
@@ -89,7 +89,7 @@ private static async Task<IResult> GetAllPosts(IRepository<Post> postRepository,
89
ClaimsPrincipal user)
90
{
91
var results = await postRepository.GetWithIncludes(q => q.Include(p => p.Author)
92
- .Include(c => c.Comments)
+ .Include(c => c.Comments).ThenInclude(u => u.User)
93
.Include(l => l.Likes));
94
95
var postData = new PostsSuccessDTOVol2
0 commit comments