mirror of
https://github.com/friendica/friendica
synced 2025-04-19 11:50:12 +00:00
API call rate_limit_status moved
This commit is contained in:
parent
a6db8df92d
commit
b6943aff36
5 changed files with 73 additions and 51 deletions
|
@ -225,7 +225,7 @@ class BaseApi extends BaseModule
|
|||
*
|
||||
* @return int User ID
|
||||
*/
|
||||
protected static function getCurrentUserID()
|
||||
public static function getCurrentUserID()
|
||||
{
|
||||
$uid = OAuth::getCurrentUserID();
|
||||
|
||||
|
@ -411,7 +411,7 @@ class BaseApi extends BaseModule
|
|||
if (is_bool($item)) {
|
||||
$item = ($item ? 'true' : 'false');
|
||||
}
|
||||
|
||||
|
||||
if (substr($key, 0, 10) == 'statusnet_') {
|
||||
$key = 'statusnet:'.substr($key, 10);
|
||||
} elseif (substr($key, 0, 10) == 'friendica_') {
|
||||
|
@ -419,7 +419,7 @@ class BaseApi extends BaseModule
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Creates the XML from a JSON style array
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue