Browse Source

Merge pull request #7823 from abpframework/cotur/cms-kit/comments

Added check for replied comment on comment creation
pull/7827/head
Enis Necipoglu 6 years ago
committed by GitHub
parent
commit
2b6f38ade6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      modules/cms-kit/src/Volo.CmsKit.Public.Application/Volo/CmsKit/Public/Comments/CommentPublicAppService.cs

5
modules/cms-kit/src/Volo.CmsKit.Public.Application/Volo/CmsKit/Public/Comments/CommentPublicAppService.cs

@ -52,6 +52,11 @@ namespace Volo.CmsKit.Public.Comments
{ {
var user = await CmsUserLookupService.GetByIdAsync(CurrentUser.GetId()); var user = await CmsUserLookupService.GetByIdAsync(CurrentUser.GetId());
if(input.RepliedCommentId.HasValue)
{
await CommentRepository.GetAsync(input.RepliedCommentId.Value);
}
var comment = await CommentRepository.InsertAsync( var comment = await CommentRepository.InsertAsync(
new Comment( new Comment(
GuidGenerator.Create(), GuidGenerator.Create(),

Loading…
Cancel
Save