]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
logging tweak for Twitter status ID issue
authorBrion Vibber <brion@pobox.com>
Tue, 23 Nov 2010 17:49:32 +0000 (09:49 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 23 Nov 2010 17:49:32 +0000 (09:49 -0800)
plugins/TwitterBridge/twitterimport.php

index 7182da8a5e0d95c98ea299ad1f4900de01f731a1..143543d8efa8621e3932c9b62074409e614123a5 100644 (file)
@@ -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);