From 1ef7fcda0af7608fcd9742c082d01fdb3dbcad45 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 30 Jan 2026 13:00:39 +0000 Subject: [PATCH] Remove capability to update xchan entries via api. If this functionality is required it should be implemented over a channel endpoint where xchan and channel info would be updated after verification. (cherry picked from commit cb7dc2059a45fee808ea08bf6b183876233c9200) Co-authored-by: Mario Vavti --- include/api_zot.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/api_zot.php b/include/api_zot.php index a2753269d..44a5a3ea4 100644 --- a/include/api_zot.php +++ b/include/api_zot.php @@ -461,11 +461,9 @@ function api_red_xchan($type) { if(api_user() === false) return false; + logger('api_xchan'); - if($_SERVER['REQUEST_METHOD'] === 'POST') { - $r = xchan_store($_REQUEST); - } $r = xchan_fetch($_REQUEST); json_return_and_die($r); };