summaryrefslogtreecommitdiff
path: root/plugins/TwitterBridge/twitterimport.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-11-23 09:49:32 -0800
committerBrion Vibber <brion@pobox.com>2010-11-23 09:49:32 -0800
commitc65f19948613db5c59d403ae7c134874244d5b63 (patch)
tree85d92c92f68362556280207489b607253617c6a5 /plugins/TwitterBridge/twitterimport.php
parentc169dcb5221cf3dd452c291bf97374bb459cc5b9 (diff)
logging tweak for Twitter status ID issue
Diffstat (limited to 'plugins/TwitterBridge/twitterimport.php')
-rw-r--r--plugins/TwitterBridge/twitterimport.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/TwitterBridge/twitterimport.php b/plugins/TwitterBridge/twitterimport.php
index 7182da8a5..143543d8e 100644
--- a/plugins/TwitterBridge/twitterimport.php
+++ b/plugins/TwitterBridge/twitterimport.php
@@ -545,7 +545,8 @@ class TwitterImport
$text = $status->text;
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 = preg_replace('/(^|\&quot\;|\'|\(|\[|\{|\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);