summaryrefslogtreecommitdiff
path: root/plugins/RSSCloud/RSSCloudNotifier.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-09-21 00:54:56 -0700
committerZach Copley <zach@status.net>2010-01-05 22:59:42 -0800
commit51ac7439e1875e7703c7aaeba91d19838b860032 (patch)
tree1911530cd1c4e4633555690d01c98c43a7da8985 /plugins/RSSCloud/RSSCloudNotifier.php
parent391003c3c65572dd156244390d8eedd2dfd96f90 (diff)
/rsscloud/request_notify should work now
Diffstat (limited to 'plugins/RSSCloud/RSSCloudNotifier.php')
-rw-r--r--plugins/RSSCloud/RSSCloudNotifier.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/plugins/RSSCloud/RSSCloudNotifier.php b/plugins/RSSCloud/RSSCloudNotifier.php
index 65bfd032e..c2130b7b8 100644
--- a/plugins/RSSCloud/RSSCloudNotifier.php
+++ b/plugins/RSSCloud/RSSCloudNotifier.php
@@ -2,7 +2,7 @@
/**
* StatusNet, the distributed open-source microblogging tool
*
- * Class to ping an rssCloud hub when a feed has been updated
+ * Class to ping an rssCloud endpoint when a feed has been updated
*
* PHP version 5
*
@@ -40,12 +40,15 @@ class RSSCloudNotifier {
$result = $this->httpPost($endpoint, $params);
+ // XXX: Make all this use CurlClient (lib/curlclient.php)
+
if ($result) {
- common_debug('success notifying cloud');
+ common_debug('RSSCloud plugin - success notifying cloud endpoint!');
} else {
- common_debug('failure notifying cloud');
+ common_debug('RSSClous plugin - failure notifying cloud endpoint!');
}
+ return $result;
}
function userAgent()
@@ -56,8 +59,6 @@ class RSSCloudNotifier {
private function httpPost($url, $params) {
- common_debug('params: ' . var_export($params, true));
-
$options = array(CURLOPT_URL => $url,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $params,
@@ -78,9 +79,6 @@ class RSSCloudNotifier {
curl_close($ch);
- common_debug('curl response: ' . var_export($response, true));
- common_debug('curl info: ' . var_export($info, true));
-
if ($info['http_code'] == 200) {
return true;
} else {