forked from friendica/friendica-addons
Fixing some notices
This commit is contained in:
parent
96925a3a75
commit
225243645e
|
@ -672,7 +672,7 @@ function pumpio_action(App $a, $uid, $uri, $action, $content = "")
|
||||||
if ($success) {
|
if ($success) {
|
||||||
Logger::log('pumpio_action '.$username.' '.$action.': success '.$uri);
|
Logger::log('pumpio_action '.$username.' '.$action.': success '.$uri);
|
||||||
} else {
|
} else {
|
||||||
Logger::log('pumpio_action '.$username.' '.$action.': general error: '.$uri.' '.print_r($user, true));
|
Logger::log('pumpio_action '.$username.' '.$action.': general error: '.$uri);
|
||||||
Worker::defer();
|
Worker::defer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,9 @@ class StatusNetOAuth extends TwitterOAuth
|
||||||
function get_maxlength()
|
function get_maxlength()
|
||||||
{
|
{
|
||||||
$config = $this->get($this->host . 'statusnet/config.json');
|
$config = $this->get($this->host . 'statusnet/config.json');
|
||||||
|
if (empty($config)) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return $config->site->textlimit;
|
return $config->site->textlimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1978,6 +1978,10 @@ function twitter_update_mentions($body)
|
||||||
|
|
||||||
function twitter_convert_share(array $attributes, array $author_contact, $content, $is_quote_share)
|
function twitter_convert_share(array $attributes, array $author_contact, $content, $is_quote_share)
|
||||||
{
|
{
|
||||||
|
if (empty($contact)) {
|
||||||
|
return $content . "\n\n" . $attributes['link'];
|
||||||
|
}
|
||||||
|
|
||||||
if ($author_contact['network'] == Protocol::TWITTER) {
|
if ($author_contact['network'] == Protocol::TWITTER) {
|
||||||
$mention = '@' . $author_contact['nick'];
|
$mention = '@' . $author_contact['nick'];
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue