logging tweak for Twitter status ID issue
This commit is contained in:
parent
c169dcb522
commit
c65f199486
|
@ -545,7 +545,8 @@ class TwitterImport
|
||||||
$text = $status->text;
|
$text = $status->text;
|
||||||
|
|
||||||
if (empty($status->entities)) {
|
if (empty($status->entities)) {
|
||||||
common_log(LOG_WARNING, "No entities data for {$status->id}; trying to fake up links ourselves.");
|
$statusId = twitter_id($status);
|
||||||
|
common_log(LOG_WARNING, "No entities data for {$statusId}; trying to fake up links ourselves.");
|
||||||
$text = common_replace_urls_callback($text, 'common_linkify');
|
$text = common_replace_urls_callback($text, 'common_linkify');
|
||||||
$text = preg_replace('/(^|\"\;|\'|\(|\[|\{|\s+)#([\pL\pN_\-\.]{1,64})/e', "'\\1#'.TwitterStatusFetcher::tagLink('\\2')", $text);
|
$text = preg_replace('/(^|\"\;|\'|\(|\[|\{|\s+)#([\pL\pN_\-\.]{1,64})/e', "'\\1#'.TwitterStatusFetcher::tagLink('\\2')", $text);
|
||||||
$text = preg_replace('/(^|\s+)@([a-z0-9A-Z_]{1,64})/e', "'\\1@'.TwitterStatusFetcher::atLink('\\2')", $text);
|
$text = preg_replace('/(^|\s+)@([a-z0-9A-Z_]{1,64})/e', "'\\1@'.TwitterStatusFetcher::atLink('\\2')", $text);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user