Obsolete CreatorName and WriterName on IPublishedContent
This commit is contained in:
@@ -163,6 +163,8 @@ namespace Umbraco.Web.PublishedCache.NuCache
|
||||
public override int CreatorId => _contentNode.CreatorId;
|
||||
|
||||
/// <inheritdoc />
|
||||
[Obsolete("Use CreatorName(IUserService) extension instead")]
|
||||
|
||||
public override string CreatorName => GetProfileNameById(_contentNode.CreatorId);
|
||||
|
||||
/// <inheritdoc />
|
||||
@@ -172,6 +174,8 @@ namespace Umbraco.Web.PublishedCache.NuCache
|
||||
public override int WriterId => ContentData.WriterId;
|
||||
|
||||
/// <inheritdoc />
|
||||
[Obsolete("Use WriterName(IUserService) extension instead")]
|
||||
|
||||
public override string WriterName => GetProfileNameById(ContentData.WriterId);
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -140,9 +140,13 @@ namespace Umbraco.Web.PublishedCache
|
||||
public override string UrlSegment => throw new NotSupportedException();
|
||||
|
||||
// TODO: ARGH! need to fix this - this is not good because it uses ApplicationContext.Current
|
||||
[Obsolete("Use WriterName(IUserService) extension instead")]
|
||||
|
||||
public override string WriterName => _member.GetCreatorProfile().Name;
|
||||
|
||||
// TODO: ARGH! need to fix this - this is not good because it uses ApplicationContext.Current
|
||||
[Obsolete("Use CreatorName(IUserService) extension instead")]
|
||||
|
||||
public override string CreatorName => _member.GetCreatorProfile().Name;
|
||||
|
||||
public override int WriterId => _member.CreatorId;
|
||||
|
||||
Reference in New Issue
Block a user