Fixing some notices

This commit is contained in:
Michael 2020-04-04 11:15:13 +00:00
parent 96925a3a75
commit 225243645e
3 changed files with 8 additions and 1 deletions

View file

@ -15,6 +15,9 @@ class StatusNetOAuth extends TwitterOAuth
function get_maxlength()
{
$config = $this->get($this->host . 'statusnet/config.json');
if (empty($config)) {
return 0;
}
return $config->site->textlimit;
}