function buffer_send(App $a, &$b)
{
- if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited']))
+ if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
return;
+ }
- if(! strstr($b['postopts'],'buffer'))
+ if(! strstr($b['postopts'],'buffer')) {
return;
+ }
- if($b['parent'] != $b['id'])
+ if($b['parent'] != $b['id']) {
return;
+ }
// Dont't post if the post doesn't belong to us.
// This is a check for forum postings
logger('diaspora_send: invoked');
- if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited']))
+ if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
return;
+ }
- if(! strstr($b['postopts'],'diaspora'))
+ if(! strstr($b['postopts'],'diaspora')) {
return;
+ }
- if($b['parent'] != $b['id'])
+ if($b['parent'] != $b['id']) {
return;
+ }
// Dont't post if the post doesn't belong to us.
// This is a check for forum postings
logger('libertree_send: invoked');
- if ($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited']))
+ if ($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
return;
+ }
- if (! strstr($b['postopts'],'libertree'))
+ if (! strstr($b['postopts'],'libertree')) {
return;
+ }
- if ($b['parent'] != $b['id'])
+ if ($b['parent'] != $b['id']) {
return;
+ }
// Dont't post if the post doesn't belong to us.
// This is a check for forum postings
logger("pumpio_send: receiver ".print_r($receiver, true));
- if (!count($receiver) && ($b['private'] || !strstr($b['postopts'],'pumpio')))
+ if (!count($receiver) && ($b['private'] || !strstr($b['postopts'],'pumpio'))) {
return;
+ }
// Dont't post if the post doesn't belong to us.
// This is a check for forum postings
$nicknameplain = "@" . $nick;
logger("statusnet_post_hook: comparing " . $nickname . " and " . $nicknameplain . " with " . $b["body"], LOGGER_DEBUG);
- if ((strpos($b["body"], $nickname) === false) && (strpos($b["body"], $nicknameplain) === false))
+ if ((strpos($b["body"], $nickname) === false) && (strpos($b["body"], $nicknameplain) === false)) {
$b["body"] = $nickname . " " . $b["body"];
+ }
logger("statusnet_post_hook: parent found " . print_r($orig_post, true), LOGGER_DEBUG);
} else {
$iscomment = false;
- if ($b['private'] || !strstr($b['postopts'], 'statusnet'))
+ if ($b['private'] || !strstr($b['postopts'], 'statusnet')) {
return;
+ }
// Dont't post if the post doesn't belong to us.
// This is a check for forum postings
function tumblr_send(&$a,&$b) {
- if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited']))
+ if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
return;
+ }
- if(! strstr($b['postopts'],'tumblr'))
+ if(! strstr($b['postopts'],'tumblr')) {
return;
+ }
- if($b['parent'] != $b['id'])
+ if($b['parent'] != $b['id']) {
return;
+ }
// Dont't post if the post doesn't belong to us.
// This is a check for forum postings
function wppost_send(&$a,&$b) {
- if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited']))
+ if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
return;
+ }
- if(! strstr($b['postopts'],'wppost'))
+ if(! strstr($b['postopts'],'wppost')) {
return;
+ }
- if($b['parent'] != $b['id'])
+ if($b['parent'] != $b['id']) {
return;
+ }
// Dont't post if the post doesn't belong to us.
// This is a check for forum postings