aboutsummaryrefslogtreecommitdiffstats
path: root/addon/statusnet
diff options
context:
space:
mode:
Diffstat (limited to 'addon/statusnet')
-rw-r--r--addon/statusnet/statusnet.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/addon/statusnet/statusnet.php b/addon/statusnet/statusnet.php
index cd562cd1e..bc47242fc 100644
--- a/addon/statusnet/statusnet.php
+++ b/addon/statusnet/statusnet.php
@@ -235,7 +235,8 @@ function statusnet_post_hook(&$a,&$b) {
$msg .= '... ' . $shortlink;
}
// and now tweet it :-)
- $dent->post('statuses/update', array('status' => $msg));
+ if(strlen($msg))
+ $dent->post('statuses/update', array('status' => $msg));
}
}
}