mirror of
https://github.com/friendica/friendica
synced 2024-11-20 09:03:40 +00:00
Merge pull request #3263 from annando/1601-api-statuses-lookup
More GNU Social compatibility for the API
This commit is contained in:
commit
6e35c49cb9
1 changed files with 3 additions and 0 deletions
|
@ -352,6 +352,7 @@ use \Friendica\Core\Config;
|
|||
}
|
||||
}
|
||||
}
|
||||
logger('API call not implemented: '.$a->query_string);
|
||||
throw new NotImplementedException();
|
||||
} catch (HTTPException $e) {
|
||||
header("HTTP/1.1 {$e->httpcode} {$e->httpdesc}");
|
||||
|
@ -2720,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) {
|
||||
|
@ -2728,6 +2730,7 @@ use \Friendica\Core\Config;
|
|||
|
||||
return api_format_data('version', $type, array('version' => $fake_statusnet_version));
|
||||
}
|
||||
api_register_func('api/gnusocial/version','api_statusnet_version',false);
|
||||
api_register_func('api/statusnet/version','api_statusnet_version',false);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue