]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix precedence issue causing all replies to be sent to Twitter. Fix #3386
authorJean Baptiste Favre <statusnet@jbfavre.org>
Tue, 13 Dec 2011 19:30:03 +0000 (20:30 +0100)
committerJean Baptiste Favre <statusnet@jbfavre.org>
Tue, 13 Dec 2011 19:30:03 +0000 (20:30 +0100)
plugins/TwitterBridge/twitter.php

index 05fbdf2c4fc0ad7f3f66377988ead214545a8e37..3da974df93e2b866c0fa640f296e388abedb1e53 100644 (file)
@@ -116,12 +116,12 @@ function is_twitter_bound($notice, $flink) {
     }
 
     // Check to see if notice should go to Twitter
-    if (!empty($flink) && ($flink->noticesync & FOREIGN_NOTICE_SEND == FOREIGN_NOTICE_SEND)) {
+    if (!empty($flink) && (($flink->noticesync & FOREIGN_NOTICE_SEND) == FOREIGN_NOTICE_SEND)) {
 
         // If it's not a Twitter-style reply, or if the user WANTS to send replies,
         // or if it's in reply to a twitter notice
         if (!preg_match('/^@[a-zA-Z0-9_]{1,15}\b/u', $notice->content) ||
-            ($flink->noticesync & FOREIGN_NOTICE_SEND_REPLY == FOREIGN_NOTICE_SEND_REPLY) ||
+            (($flink->noticesync & FOREIGN_NOTICE_SEND_REPLY) == FOREIGN_NOTICE_SEND_REPLY) ||
             is_twitter_notice($notice->reply_to)) {
             return true;
         }