]> git.mxchange.org Git - friendica-addons.git/commitdiff
disable posterous
authorfriendica <info@friendica.com>
Thu, 3 May 2012 09:06:04 +0000 (02:06 -0700)
committerfriendica <info@friendica.com>
Thu, 3 May 2012 09:06:04 +0000 (02:06 -0700)
posterous.tgz
posterous/posterous.php

index 886435132b2414a41fad54fcda6f9e9d39a3480a..b3f342d910686d59789baf146e029224c3f66c2d 100755 (executable)
Binary files a/posterous.tgz and b/posterous.tgz differ
index 5ecf0c2921b29979ae2b1bdabfff5bcec298932b..6c3a214090814e0130b6ad181d159e4f416474d1 100755 (executable)
@@ -138,6 +138,10 @@ function posterous_post_local(&$a,&$b) {
 
 function posterous_send(&$a,&$b) {
 
+       logger('posterous_send: invoked');
+       logger('posterous: plugin disabled. API endpoint no longer responds.');
+       return;
+
     if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited']))
         return;
 
@@ -155,7 +159,7 @@ function posterous_send(&$a,&$b) {
        if($pstr_username && $pstr_password && $pstr_blog) {
 
                require_once('include/bbcode.php');
-               require_once('posterous-api.php');              
+               require_once('addon/posterous/posterous-api.php');              
                $tag_arr = array();
                $tags = '';
                $x = preg_match_all('/\#\[(.*?)\](.*?)\[/',$b['tag'],$matches,PREG_SET_ORDER);
@@ -179,6 +183,8 @@ function posterous_send(&$a,&$b) {
                        'body' => bbcode($b['body'])
                );
 
+               logger('posterous: params: ' . print_r($params,true), LOGGER_DATA);
+
                $api = new PosterousAPI($pstr_username,$pstr_password);
 
                $result = $api->newpost($params);