@ -156,7 +156,7 @@ namespace Volo.Blogging.Posts
var post = new Post(
id: GuidGenerator.Create(),
blogId: input.BlogId,
creatorId: CurrentUser.GetId(),
creatorId: CurrentUser.Id,
title: input.Title,
coverImage: input.CoverImage,
url: input.Url
@ -33,7 +33,7 @@ namespace Volo.Blogging.Posts
}
public Post(Guid id, Guid blogId, Guid creatorId, [NotNull] string title, [NotNull] string coverImage, [NotNull] string url)
public Post(Guid id, Guid blogId, Guid? creatorId, [NotNull] string title, [NotNull] string coverImage, [NotNull] string url)
{
Id = id;
CreatorId = creatorId;