mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
fix errors in statusnet addon
This commit is contained in:
parent
fccf361ef1
commit
a41f8c13fe
2 changed files with 9 additions and 6 deletions
|
@ -366,6 +366,8 @@ function statusnet_post_hook(array &$b)
|
|||
$otoken = DI::pConfig()->get($b['uid'], 'statusnet', 'oauthtoken');
|
||||
$osecret = DI::pConfig()->get($b['uid'], 'statusnet', 'oauthsecret');
|
||||
|
||||
$iscomment = null;
|
||||
|
||||
if ($ckey && $csecret && $otoken && $osecret) {
|
||||
$dent = new StatusNetOAuth($api, $ckey, $csecret, $otoken, $osecret);
|
||||
$max_char = $dent->get_maxlength(); // max. length for a dent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue