]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use capturing parens for matching at-mentions in twitterstatusfetcher
authorEvan Prodromou <evan@status.net>
Fri, 10 Sep 2010 13:21:01 +0000 (09:21 -0400)
committerEvan Prodromou <evan@status.net>
Fri, 10 Sep 2010 13:21:01 +0000 (09:21 -0400)
plugins/TwitterBridge/daemons/twitterstatusfetcher.php

index b2bcc22bccf2918a41a0507c8bfbfafd990898fb..181be3dcf3827a7dc812db7ae0b7cdef4af5b763 100755 (executable)
@@ -716,7 +716,7 @@ class TwitterStatusFetcher extends ParallelizingDaemon
             common_log(LOG_WARNING, "No entities data for {$status->id}; 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);
+            $text = preg_replace('/(^|\s+)@([a-z0-9A-Z_]{1,64})/e', "'\\1@'.TwitterStatusFetcher::atLink('\\2')", $text);
             return $text;
         }