diff options
author | Brion Vibber <brion@pobox.com> | 2010-06-10 15:37:06 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-06-10 15:37:06 -0700 |
commit | b1a68e15b760aa2e588680c9e8c7526a7a6d1d13 (patch) | |
tree | 6100f1aa00f9930433f178173099c0ce67fdc502 /plugins/RSSCloud | |
parent | 7cc58b97feb822ab999b7fefa3a50ce53a7838d5 (diff) | |
parent | e121d472e7dbb914a85b10bde0a9e2add4d19d11 (diff) |
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 1.0.x
Conflicts:
lib/default.php
lib/util.php
plugins/UrlShortener/UrlShortenerPlugin.php (has been removed?)
Diffstat (limited to 'plugins/RSSCloud')
-rw-r--r-- | plugins/RSSCloud/RSSCloudPlugin.php | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/plugins/RSSCloud/RSSCloudPlugin.php b/plugins/RSSCloud/RSSCloudPlugin.php index 661c32141..c1951cdbf 100644 --- a/plugins/RSSCloud/RSSCloudPlugin.php +++ b/plugins/RSSCloud/RSSCloudPlugin.php @@ -192,25 +192,13 @@ class RSSCloudPlugin extends Plugin function onStartEnqueueNotice($notice, &$transports) { - array_push($transports, 'rsscloud'); + if ($notice->isLocal()) { + array_push($transports, 'rsscloud'); + } return true; } /** - * Determine whether the notice was locally created - * - * @param Notice $notice the notice in question - * - * @return boolean locality - */ - - function _isLocal($notice) - { - return ($notice->is_local == Notice::LOCAL_PUBLIC || - $notice->is_local == Notice::LOCAL_NONPUBLIC); - } - - /** * Create the rsscloud_subscription table if it's not * already in the DB * |