diff options
author | Zach Copley <zach@status.net> | 2009-12-04 20:17:42 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2009-12-04 20:17:42 +0000 |
commit | cff12603cf13ddde59f82597cdf896bf0deaf596 (patch) | |
tree | 27a70ad88f396595867e3b6ead32ad5d6147fd5d /plugins/TwitterBridge/TwitterBridgePlugin.php | |
parent | 2c07d4a530e2e8ea6a48f08806f5026df1132152 (diff) |
Make imported Twitter notices show up via real time plugins.
Diffstat (limited to 'plugins/TwitterBridge/TwitterBridgePlugin.php')
-rw-r--r-- | plugins/TwitterBridge/TwitterBridgePlugin.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/TwitterBridge/TwitterBridgePlugin.php b/plugins/TwitterBridge/TwitterBridgePlugin.php index ad3c2e551..adf9ceda3 100644 --- a/plugins/TwitterBridge/TwitterBridgePlugin.php +++ b/plugins/TwitterBridge/TwitterBridgePlugin.php @@ -127,7 +127,12 @@ class TwitterBridgePlugin extends Plugin */ function onStartEnqueueNotice($notice, &$transports) { - array_push($transports, 'twitter'); + // Avoid a possible loop + + if ($notice->source != 'twitter') { + array_push($transports, 'twitter'); + } + return true; } |