]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Allow repeats to flow through the Twitter bridge
authorZach Copley <zach@status.net>
Wed, 21 Sep 2011 05:23:47 +0000 (05:23 +0000)
committerZach Copley <zach@status.net>
Wed, 21 Sep 2011 05:23:47 +0000 (05:23 +0000)
plugins/TwitterBridge/twitter.php

index 8f58153d2c39e1d8dee031e6e641425735b024d9..05fbdf2c4fc0ad7f3f66377988ead214545a8e37 100644 (file)
@@ -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;
     }