diff --git a/cleverpush.php b/cleverpush.php index f7ee2da..08e38e9 100644 --- a/cleverpush.php +++ b/cleverpush.php @@ -677,17 +677,8 @@ public function create_metabox() public function metabox($post) { - $notification_sent = get_post_meta(get_the_ID(), 'cleverpush_notification_sent', true); - - if ($notification_sent) { - $notification_sent_at = get_post_meta(get_the_ID(), 'cleverpush_notification_sent_at', true); - if (!empty($notification_sent_at) && (time() - $notification_sent_at) < 60) { - ?> - ✅ - ID, 'cleverpush_notification_sent', true); + $notification_already_sent = ! empty($notification_sent); $selected_channel_id = get_option('cleverpush_channel_id'); $api_key_private = get_option('cleverpush_apikey_private'); @@ -695,13 +686,19 @@ public function metabox($post) if (!empty($api_key_private) && !empty($selected_channel_id)) { ?> + +

+
@@ -723,13 +720,25 @@ public function metabox($post) style="width: 100%"> -
-
+
+ +
+ +
-
+ +
+
+
+