Removed WriterName and CreatorName from IPublished content and replaced functionality with an extension methods requiring an instance of IUserService.
This commit is contained in:
@@ -147,18 +147,12 @@ namespace Umbraco.Web.PublishedCache.NuCache
|
||||
/// <inheritdoc />
|
||||
public override int CreatorId => _contentNode.CreatorId;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string CreatorName => string.Empty; // TODO: remove (as want to avoid injecting user service to get these names)
|
||||
|
||||
/// <inheritdoc />
|
||||
public override DateTime CreateDate => _contentNode.CreateDate;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override int WriterId => ContentData.WriterId;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string WriterName => string.Empty; // TODO: remove (as want to avoid injecting user service to get these names)
|
||||
|
||||
/// <inheritdoc />
|
||||
public override DateTime UpdateDate => ContentData.VersionDate;
|
||||
|
||||
|
||||
@@ -141,10 +141,6 @@ namespace Umbraco.Web.PublishedCache
|
||||
|
||||
public override string UrlSegment => throw new NotSupportedException();
|
||||
|
||||
public override string WriterName => _member.GetCreatorProfile(_userService).Name;
|
||||
|
||||
public override string CreatorName => _member.GetCreatorProfile(_userService).Name;
|
||||
|
||||
public override int WriterId => _member.CreatorId;
|
||||
|
||||
public override int CreatorId => _member.CreatorId;
|
||||
|
||||
Reference in New Issue
Block a user