From c65f19948613db5c59d403ae7c134874244d5b63 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 23 Nov 2010 09:49:32 -0800 Subject: [PATCH] logging tweak for Twitter status ID issue --- plugins/TwitterBridge/twitterimport.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/TwitterBridge/twitterimport.php b/plugins/TwitterBridge/twitterimport.php index 7182da8a5e..143543d8ef 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('/(^|\"\;|\'|\(|\[|\{|\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); -- 2.39.5