From e4c03e0d4e965fafac20fd9dc74b35453f0bb97c Mon Sep 17 00:00:00 2001
From: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
Date: Thu, 11 May 2023 13:58:57 +0200
Subject: [PATCH] V11: Obsolete action to publish (#14208)
* Add obsolete message to ActionToPublish
* Obsolete handler for ContentSentTOPublishNotifcation
---
src/Umbraco.Core/Actions/ActionToPublish.cs | 1 +
src/Umbraco.Core/Events/UserNotificationsHandler.cs | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/Umbraco.Core/Actions/ActionToPublish.cs b/src/Umbraco.Core/Actions/ActionToPublish.cs
index e7af16bc99..25719e30fc 100644
--- a/src/Umbraco.Core/Actions/ActionToPublish.cs
+++ b/src/Umbraco.Core/Actions/ActionToPublish.cs
@@ -6,6 +6,7 @@ namespace Umbraco.Cms.Core.Actions;
///
/// This action is invoked when children to a document is being sent to published (by an editor without publishrights).
///
+[Obsolete("Scheduled for removal in v13")]
public class ActionToPublish : IAction
{
///
diff --git a/src/Umbraco.Core/Events/UserNotificationsHandler.cs b/src/Umbraco.Core/Events/UserNotificationsHandler.cs
index 042355630f..4b581788e8 100644
--- a/src/Umbraco.Core/Events/UserNotificationsHandler.cs
+++ b/src/Umbraco.Core/Events/UserNotificationsHandler.cs
@@ -107,6 +107,7 @@ public sealed class UserNotificationsHandler :
_notifier.Notify(_actions.GetAction(), updatedEntities.ToArray());
}
+ [Obsolete("Scheduled for removal in v13")]
public void Handle(ContentSentToPublishNotification notification) =>
_notifier.Notify(_actions.GetAction(), notification.Entity);