]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Twitter bridge - change regex to look for mb @-replies
authorzach <zach@controlyourself.ca>
Mon, 27 Oct 2008 19:16:29 +0000 (15:16 -0400)
committerzach <zach@controlyourself.ca>
Mon, 27 Oct 2008 19:16:29 +0000 (15:16 -0400)
darcs-hash:20081027191629-462f3-ff16a45754e2370f62ebac06dc38c51981bb6ee6.gz

lib/util.php

index 10a8a49d2bc20bcfffec0fa6d1dd405b2f1d28fa..c65adc76bc58b8f4ae97fa37ce5d9a0e3526b550 100644 (file)
@@ -1146,7 +1146,7 @@ function common_broadcast_notice($notice, $remote=false) {
 
                // If it's not a Twitter-style reply, or if the user WANTS to send replies...
 
-               if (!preg_match('/^@[a-zA-Z0-9_]{1,15}\b/', $notice->content) ||
+               if (!preg_match('/^@[a-zA-Z0-9_]{1,15}\b/u', $notice->content) ||
                        (($flink->noticesync & FOREIGN_NOTICE_SEND_REPLY) == FOREIGN_NOTICE_SEND_REPLY)) {
 
                        $result = common_twitter_broadcast($notice, $flink);