|
|
|
@ -8,6 +8,7 @@
|
|
|
|
|
@using Volo.Blogging.Pages.Blog.Posts
|
|
|
|
|
@using Volo.Blogging.Areas.Blog.Helpers.TagHelpers
|
|
|
|
|
@using Volo.Abp.AspNetCore.Mvc.UI.Packages.Prismjs
|
|
|
|
|
@using Volo.Blogging.SocialMedia
|
|
|
|
|
@inject IAuthorizationService Authorization
|
|
|
|
|
@inject IOptionsSnapshot<BloggingTwitterOptions> twitterOptions
|
|
|
|
|
@model DetailModel
|
|
|
|
@ -21,6 +22,11 @@
|
|
|
|
|
ViewBag.TwitterDescription = Model.Post.Description;
|
|
|
|
|
ViewBag.TwitterImage = $"{Request.Scheme}://{Request.Host}{Request.PathBase}{Model.Post.CoverImage}";
|
|
|
|
|
|
|
|
|
|
ViewBag.LinkedInUrl = Request.GetEncodedUrl();
|
|
|
|
|
ViewBag.LinkedInTitle = Model.Post.Title;
|
|
|
|
|
ViewBag.LinkedInDescription = Model.Post.Description;
|
|
|
|
|
ViewBag.LinkedInImage = $"{Request.Scheme}://{Request.Host}{Request.PathBase}{Model.Post.CoverImage}";
|
|
|
|
|
|
|
|
|
|
var hasCommentingPermission = CurrentUser.IsAuthenticated; //TODO: Apply real policy!
|
|
|
|
|
}
|
|
|
|
|
@section scripts {
|
|
|
|
|