forked from friendica/friendica-addons
Merge branch 'master' of github.com:friendica/friendica-addons
This commit is contained in:
commit
aac30fc433
BIN
posterous.tgz
BIN
posterous.tgz
Binary file not shown.
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name: Posterous Post Connector
|
* Name: Posterous Post Connector
|
||||||
* Description: Post to Posterous accounts
|
* Description: DISABLE THIS PLUGIN! System stability at risk! Post to Posterous accounts
|
||||||
* Version: 1.0
|
* Version: 1.0
|
||||||
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
||||||
*/
|
*/
|
||||||
|
@ -138,6 +138,10 @@ function posterous_post_local(&$a,&$b) {
|
||||||
|
|
||||||
function posterous_send(&$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']))
|
if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited']))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -155,7 +159,7 @@ function posterous_send(&$a,&$b) {
|
||||||
if($pstr_username && $pstr_password && $pstr_blog) {
|
if($pstr_username && $pstr_password && $pstr_blog) {
|
||||||
|
|
||||||
require_once('include/bbcode.php');
|
require_once('include/bbcode.php');
|
||||||
require_once('posterous-api.php');
|
require_once('addon/posterous/posterous-api.php');
|
||||||
$tag_arr = array();
|
$tag_arr = array();
|
||||||
$tags = '';
|
$tags = '';
|
||||||
$x = preg_match_all('/\#\[(.*?)\](.*?)\[/',$b['tag'],$matches,PREG_SET_ORDER);
|
$x = preg_match_all('/\#\[(.*?)\](.*?)\[/',$b['tag'],$matches,PREG_SET_ORDER);
|
||||||
|
@ -179,6 +183,8 @@ function posterous_send(&$a,&$b) {
|
||||||
'body' => bbcode($b['body'])
|
'body' => bbcode($b['body'])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
logger('posterous: params: ' . print_r($params,true), LOGGER_DATA);
|
||||||
|
|
||||||
$api = new PosterousAPI($pstr_username,$pstr_password);
|
$api = new PosterousAPI($pstr_username,$pstr_password);
|
||||||
|
|
||||||
$result = $api->newpost($params);
|
$result = $api->newpost($params);
|
||||||
|
|
Loading…
Reference in a new issue