]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/TwitterBridge/twitter.php
Allow repeats to flow through the Twitter bridge
[quix0rs-gnu-social.git] / 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;
     }