if ($success) {
Logger::log('pumpio_action '.$username.' '.$action.': success '.$uri);
} 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();
}
}
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) {
$mention = '@' . $author_contact['nick'];
} else {