forked from friendica/friendica-addons
SN apply debugging info to the log as for Twitter
This commit is contained in:
parent
6ac0556e10
commit
d9089213fb
1 changed files with 8 additions and 3 deletions
|
@ -489,9 +489,14 @@ function statusnet_post_hook(&$a,&$b) {
|
||||||
$msg = implode(' ', $e);
|
$msg = implode(' ', $e);
|
||||||
$msg .= '... ' . $shortlink;
|
$msg .= '... ' . $shortlink;
|
||||||
}
|
}
|
||||||
// and now tweet it :-)
|
// and now dent it :-)
|
||||||
if(strlen($msg))
|
if(strlen($msg)) {
|
||||||
$dent->post('statuses/update', array('status' => $msg));
|
$result = $dent->post('statuses/update', array('status' => $msg));
|
||||||
|
logger('statusnet_post send, result: ' . print_r($result, true), LOGGER_DEBUG);
|
||||||
|
if ($result->error) {
|
||||||
|
logger('Send to StatusNet failed: "' . $result->error . '"');
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue