|
|
|
@ -440,7 +440,7 @@ function twitter_hook_fork(App $a, array &$b)
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (substr($post['app'], 0, 7) == 'Twitter') {
|
|
|
|
|
if (substr($post['app'] ?? '', 0, 7) == 'Twitter') {
|
|
|
|
|
DI::logger()->info('No Twitter app');
|
|
|
|
|
$b['execute'] = false;
|
|
|
|
|
return;
|
|
|
|
@ -455,7 +455,7 @@ function twitter_hook_fork(App $a, array &$b)
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
// Comments are never exported when we don't import the twitter timeline
|
|
|
|
|
if (!strstr($post['postopts'], 'twitter') || ($post['parent'] != $post['id']) || $post['private']) {
|
|
|
|
|
if (!strstr($post['postopts'] ?? '', 'twitter') || ($post['parent'] != $post['id']) || $post['private']) {
|
|
|
|
|
DI::logger()->info('Comments are never exported when we don\'t import the twitter timeline');
|
|
|
|
|
$b['execute'] = false;
|
|
|
|
|
return;
|
|
|
|
@ -1582,7 +1582,7 @@ function twitter_auto_follow(int $uid, object $data)
|
|
|
|
|
// We only probe on Mastodon style URL to reduce the number of unsuccessful probes
|
|
|
|
|
twitter_add_contact($url->expanded_url, strpos($url->expanded_url, '@'), $uid);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|