From d778e7bfb74ca04ac9e65effbe1e4d1de5b979ba Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 4 Jan 2016 01:00:19 +0100 Subject: [PATCH 1/2] API: Preparation for statuses/lookup support --- include/api.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/api.php b/include/api.php index 790894d3fb..f1294c690d 100644 --- a/include/api.php +++ b/include/api.php @@ -318,6 +318,7 @@ } } } + logger('API call not implemented: '.$a->query_string); throw new NotImplementedException(); } catch (HTTPException $e) { header("HTTP/1.1 {$e->httpcode} {$e->httpdesc}"); @@ -2576,6 +2577,7 @@ killme(); } } + api_register_func('api/gnusocial/version','api_statusnet_version',false); api_register_func('api/statusnet/version','api_statusnet_version',false); /** From a9dfd1fcb7c835d661ab95f9b0898f7912184777 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 25 Mar 2017 11:31:31 +0000 Subject: [PATCH 2/2] One more API call added --- include/api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/api.php b/include/api.php index 08bd835f3b..e22c3ba787 100644 --- a/include/api.php +++ b/include/api.php @@ -2721,6 +2721,7 @@ use \Friendica\Core\Config; return api_format_data('config', $type, array('config' => $config)); } + api_register_func('api/gnusocial/config','api_statusnet_config',false); api_register_func('api/statusnet/config','api_statusnet_config',false); function api_statusnet_version($type) {