From: Stephen Paul Weber Date: Fri, 23 Oct 2015 15:37:11 +0000 (+0000) Subject: Always send Twitter replies to Twitter X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=123bb445dbcc3baf7ba2d06b6c465669a3831778;p=quix0rs-gnu-social.git Always send Twitter replies to Twitter 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! --- diff --git a/plugins/TwitterBridge/twitter.php b/plugins/TwitterBridge/twitter.php index 0f1e686ac8..6b7e2179e6 100644 --- a/plugins/TwitterBridge/twitter.php +++ b/plugins/TwitterBridge/twitter.php @@ -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; }