From c68aefb847b09daa0697de7684d3451e2e68ce1e Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 09 Jul 2026 23:10:23 +0000
Subject: [PATCH] =Refactor of Integrations.php to be a bit more useful with a suite of methods for create, update, delete back and forths for integrations where sharing is enabled. Also considering a single instance with a connect method to connect as the site (no user) vs connecting as an individual user - rather than recreating instances for every user.
---
assets/js/concise/Notifications.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/assets/js/concise/Notifications.js b/assets/js/concise/Notifications.js
index 66bac6f..5d50c8b 100644
--- a/assets/js/concise/Notifications.js
+++ b/assets/js/concise/Notifications.js
@@ -93,7 +93,7 @@
method: 'GET',
headers: {
'X-WP-Nonce': window.auth.getNonce(),
- 'action_nonce': window.auth.getNonce('notifications')
+ 'X-Action-Nonce': window.auth.getNonce('notifications')
}
}, {
context: 'notifications',
@@ -278,7 +278,7 @@
method: 'POST',
headers: {
'X-WP-Nonce': window.auth.getNonce(),
- 'action_nonce': window.auth.getNonce('dash'),
+ 'X-Action-Nonce': window.auth.getNonce('dash'),
},
body: {
notification: notificationId,
@@ -339,7 +339,7 @@
const response = await fetch(`${jvbSettings.api}notifications?${params.toString()}`, {
headers: {
'X-WP-Nonce': window.auth.getNonce(),
- 'action_nonce': window.auth.getNonce('dash'),
+ 'X-Action-Nonce': window.auth.getNonce('dash'),
'If-Modified-Since': this.lastCheck,
}
});
--
Gitblit v1.10.0