The intelligent shortening for social media systems like Twitter, GNU Social and App.net can now be disabled.

This commit is contained in:
Michael Vogel 2015-05-15 20:56:05 +02:00
parent a138d5d8c0
commit d995fc3994
2 changed files with 23 additions and 2 deletions

View file

@ -182,6 +182,8 @@ function plaintext($a, $b, $limit = 0, $includedlinks = false, $htmlmode = 2) {
$post["url"] = $b["plink"];
} elseif (strpos($b["body"], "[share") !== false)
$post["url"] = $b["plink"];
elseif (get_pconfig($b["uid"], "system", "no_intelligent_shortening"))
$post["url"] = $b["plink"];
$msg = shortenmsg($msg, $limit);
}