|
|
|
@ -87,13 +87,9 @@ namespace Volo.Blogging.Pages.Blog.Posts |
|
|
|
Blog = await _blogAppService.GetByShortNameAsync(BlogShortName); |
|
|
|
Post = await _postAppService.GetForReadingAsync(new GetPostInput { BlogId = Blog.Id, Url = PostUrl }); |
|
|
|
|
|
|
|
if (Post.Writer != null) |
|
|
|
{ |
|
|
|
PostsList = await _postAppService.GetListByUserIdAsync(Post.Writer.Id); |
|
|
|
}else |
|
|
|
{ |
|
|
|
PostsList = new List<PostWithDetailsDto>(); |
|
|
|
} |
|
|
|
PostsList = Post.Writer != null |
|
|
|
? await _postAppService.GetListByUserIdAsync(Post.Writer.Id) |
|
|
|
: new List<PostWithDetailsDto>(); |
|
|
|
|
|
|
|
LatestPosts = await _postAppService.GetLatestBlogPostsAsync(Blog.Id, 5); |
|
|
|
CommentsWithReplies = await _commentAppService.GetHierarchicalListOfPostAsync(Post.Id); |
|
|
|
|