]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Always send Twitter replies to Twitter
authorStephen Paul Weber <singpolyma@singpolyma.net>
Fri, 23 Oct 2015 15:37:11 +0000 (15:37 +0000)
committerStephen Paul Weber <singpolyma@singpolyma.net>
Fri, 23 Oct 2015 15:37:11 +0000 (15:37 +0000)
If is_twitter_notice($notice->reply_to) then send it to Twitter, even
if twitter import is off.  It's a reply to a Twitter notice, it should
go there!

plugins/TwitterBridge/twitter.php

index 0f1e686ac8865b35548cf5f0de62f6904372d8ea..6b7e2179e66d6c4657710df326388a5f3e8b5bf5 100644 (file)
@@ -124,8 +124,7 @@ function is_twitter_bound($notice, $flink) {
         // 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 ( (($flink->noticesync & FOREIGN_NOTICE_SEND_REPLY) == FOREIGN_NOTICE_SEND_REPLY) ||
-              ((is_twitter_notice($notice->reply_to) || is_twitter_notice($notice->repeat_of))
-              && (($flink->noticesync & FOREIGN_NOTICE_RECV) == FOREIGN_NOTICE_RECV)) ||
+               is_twitter_notice($notice->reply_to) || is_twitter_notice($notice->repeat_of) ||
              (empty($notice->reply_to) && !preg_match('/^@[a-zA-Z0-9_]{1,15}\b/u', $notice->content)) ){
             return true;
         }