Browse Source

Checkin repliedComment on comment creating

pull/7823/head
Ahmet 5 years ago
parent
commit
5212e4409f
  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());
if(input.RepliedCommentId.HasValue)
{
await CommentRepository.GetAsync(input.RepliedCommentId.Value);
}
var comment = await CommentRepository.InsertAsync(
new Comment(
GuidGenerator.Create(),

Loading…
Cancel
Save