aboutsummaryrefslogtreecommitdiffstats
path: root/addon/statusnet
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-10 03:51:42 -0800
committerFriendika <info@friendika.com>2011-02-10 03:51:42 -0800
commita18bb816cd4a0d82b1e2d0f9c456669987ced83b (patch)
tree985cd9a53667a70efd4f533da84f5a4690ba1fa9 /addon/statusnet
parent2e78ed00f6b247c90b1bc78ff4801e337e6d8d86 (diff)
downloadvolse-hubzilla-a18bb816cd4a0d82b1e2d0f9c456669987ced83b.tar.gz
volse-hubzilla-a18bb816cd4a0d82b1e2d0f9c456669987ced83b.tar.bz2
volse-hubzilla-a18bb816cd4a0d82b1e2d0f9c456669987ced83b.zip
entirely possible media/links were the only thing posted - don't forward empty message to twitter/SN
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));
}
}
}