From: Zach Copley Date: Wed, 21 Sep 2011 05:23:47 +0000 (+0000) Subject: Allow repeats to flow through the Twitter bridge X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=58b9f83a02cdebe30a69c2d68e9d140af53a25c0;p=quix0rs-gnu-social.git Allow repeats to flow through the Twitter bridge --- diff --git a/plugins/TwitterBridge/twitter.php b/plugins/TwitterBridge/twitter.php index 8f58153d2c..05fbdf2c4f 100644 --- a/plugins/TwitterBridge/twitter.php +++ b/plugins/TwitterBridge/twitter.php @@ -108,8 +108,10 @@ function is_twitter_bound($notice, $flink) { return false; } - // Don't send things that aren't posts (at least for now) - if ($notice->verb != ActivityVerb::POST) { + $allowedVerbs = array(ActivityVerb::POST, ActivityVerb::SHARE); + + // Don't send things that aren't posts or repeats (at least for now) + if (!in_array($notice->verb, $allowedVerbs)) { return false; }