From: friendica Date: Thu, 3 May 2012 09:06:04 +0000 (-0700) Subject: disable posterous X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9cbd26dcc920a95b03c8318acda7aa1ca6ff1c80;p=friendica-addons.git disable posterous --- diff --git a/posterous.tgz b/posterous.tgz index 88643513..b3f342d9 100755 Binary files a/posterous.tgz and b/posterous.tgz differ diff --git a/posterous/posterous.php b/posterous/posterous.php index 5ecf0c29..6c3a2140 100755 --- a/posterous/posterous.php +++ b/posterous/posterous.php @@ -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);