Skip to content

Commit

Permalink
Published Content should handle "is previewing" (#17957)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjac authored Jan 14, 2025
1 parent 6fc728c commit d6e7f83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Umbraco.PublishedCache.HybridCache/PublishedContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public PublishedContent(
_urlSegment = contentData.UrlSegment;
_published = contentData.Published;

IsPreviewing = preview;

var properties = new IPublishedProperty[_contentNode.ContentType.PropertyTypes.Count()];
var i = 0;
foreach (IPublishedPropertyType propertyType in _contentNode.ContentType.PropertyTypes)
Expand Down Expand Up @@ -127,7 +129,7 @@ private UmbracoObjectTypes GetObjectType()

public override DateTime UpdateDate { get; }

public bool IsPreviewing { get; } = false;
public bool IsPreviewing { get; }

// Needed for publishedProperty
internal IVariationContextAccessor VariationContextAccessor { get; }
Expand Down

0 comments on commit d6e7f83

Please sign in to comment.