Skip to content

Commit e9a47a2

Browse files
committed
Fix publish status with invarint case insensative culture check
1 parent a28ee8f commit e9a47a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Core/Services/PublishStatus/PublishStatusService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public bool IsDocumentPublished(Guid documentKey, string culture)
4646
{
4747
if (_publishedCultures.TryGetValue(documentKey, out ISet<string>? publishedCultures))
4848
{
49-
return publishedCultures.Contains(culture);
49+
return publishedCultures.Contains(culture, StringComparer.InvariantCultureIgnoreCase);
5050
}
5151

5252
_logger.LogDebug("Document {DocumentKey} not found in the publish status cache", documentKey);

0 commit comments

Comments
 (0)