Browse Source

Update New.cshtml.cs

pull/15729/head
Engincan VESKE 4 years ago
committed by GitHub
parent
commit
e33b81ba74
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/New.cshtml.cs

1
modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/New.cshtml.cs

@ -66,7 +66,6 @@ namespace Volo.Blogging.Pages.Blog.Posts
Post.Description = Post.Content.Truncate(PostConsts.MaxSeoFriendlyDescriptionLength);
}
// Url encode the url
Post.Url = WebUtility.UrlEncode(Post.Url);
var postWithDetailsDto = await _postAppService.CreateAsync(ObjectMapper.Map<CreatePostViewModel, CreatePostDto>(Post));

Loading…
Cancel
Save