mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
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 cb7dc2059a)
Co-authored-by: Mario Vavti <mario@mariovavti.com>
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user