mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Statusnet: New intelligent shortening enabled.
This commit is contained in:
parent
5ff7a555da
commit
0fb5631f9b
2 changed files with 178 additions and 73 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue