mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 04:54:27 +02:00
don't send empty tweets through to twitter/statusnet
This commit is contained in:
parent
1d12a2be69
commit
e2d6e986bc
2 changed files with 20 additions and 18 deletions
|
@ -235,6 +235,7 @@ function statusnet_post_hook(&$a,&$b) {
|
||||||
$msg .= '... ' . $shortlink;
|
$msg .= '... ' . $shortlink;
|
||||||
}
|
}
|
||||||
// and now tweet it :-)
|
// and now tweet it :-)
|
||||||
|
if(strlen($msg))
|
||||||
$dent->post('statuses/update', array('status' => $msg));
|
$dent->post('statuses/update', array('status' => $msg));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -209,6 +209,7 @@ function twitter_post_hook(&$a,&$b) {
|
||||||
$msg .= '... ' . $shortlink;
|
$msg .= '... ' . $shortlink;
|
||||||
}
|
}
|
||||||
// and now tweet it :-)
|
// and now tweet it :-)
|
||||||
|
if(strlen($msg))
|
||||||
$tweet->post('statuses/update', array('status' => $msg));
|
$tweet->post('statuses/update', array('status' => $msg));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue