Statusnet: New intelligent shortening enabled.

This commit is contained in:
Michael Vogel 2012-11-06 01:34:19 +01:00
parent 5ff7a555da
commit 0fb5631f9b
2 changed files with 178 additions and 73 deletions

View file

@ -282,10 +282,9 @@ function twitter_shortenmsg($b) {
// That means that we have to decode all image-urls
$image = htmlspecialchars_decode($image);
if ($b["title"] == "")
$body = $b["body"];
else
$body = $b["title"];
$body = $b["body"];
if ($b["title"] != "")
$body = $b["title"]."\n\n".$body;
// remove the recycle signs and the names since they aren't helpful on twitter
// recycle 1