]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Twitter bridge -- more explicit checking of noticesync bits
authorZach Copley <zach@controlyourself.ca>
Fri, 26 Sep 2008 19:05:43 +0000 (15:05 -0400)
committerZach Copley <zach@controlyourself.ca>
Fri, 26 Sep 2008 19:05:43 +0000 (15:05 -0400)
darcs-hash:20080926190543-7b5ce-b67b1f2a27825a38782ea8a7a11cc5f50e49725a.gz

lib/util.php

index cf514564ee4c0f1b31e91a204921508813fcc1e6..1e58fda09a5ffa7772872dc701b6c6896b0ede1d 100644 (file)
@@ -1115,13 +1115,13 @@ function common_broadcast_notice($notice, $remote=false) {
 
        // Check to see if notice should go to Twitter
        $flink = Foreign_link::getForeignLink($notice->profile_id, 1); // 1 == Twitter
-       if ($flink->noticesync & FOREIGN_NOTICE_SEND) {
-               
+       if (($flink->noticesync & FOREIGN_NOTICE_SEND) == FOREIGN_NOTICE_SEND) {
+
                // 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) ||
-                       ($flink->noticesync & FOREIGN_NOTICE_SEND_REPLY)) {
-                       
+                       (($flink->noticesync & FOREIGN_NOTICE_SEND) == FOREIGN_NOTICE_SEND)) {
+
                        $result = common_twitter_broadcast($notice, $flink);
 
                        if (!$result) {