From a18bb816cd4a0d82b1e2d0f9c456669987ced83b Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 10 Feb 2011 03:51:42 -0800 Subject: entirely possible media/links were the only thing posted - don't forward empty message to twitter/SN --- addon/statusnet/statusnet.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'addon/statusnet/statusnet.php') 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)); } } } -- cgit v1.2.3