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/CRUDOld.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/assets/js/concise/CRUDOld.js b/assets/js/concise/CRUDOld.js
index a9fc815..f662f0c 100644
--- a/assets/js/concise/CRUDOld.js
+++ b/assets/js/concise/CRUDOld.js
@@ -25,7 +25,7 @@
keyPath: 'id',
endpoint: 'content',
headers: {
- 'action_nonce': window.auth.getNonce('dash'),
+ 'X-Action-Nonce': window.auth.getNonce('dash'),
},
indexes: [
{name: 'id', keyPath: 'id'},
@@ -194,7 +194,7 @@
let operation = {
endpoint: 'content',
headers: {
- 'action_nonce': window.auth.getNonce('dash'),
+ 'X-Action-Nonce': window.auth.getNonce('dash'),
},
data: {
posts: changes,
@@ -508,7 +508,7 @@
// Get the base content type
data.content = form.closest('dialog')?.dataset.content || this.content;
- data.user = window.auth.getUser();
+ // data.user = window.auth.getUser();
// Collect timeline entries
const timelineGroups = form.querySelectorAll('.upload-group');
--
Gitblit v1.10.0