Merge pull request #1563 from annando/1505-no-intelligent-shortening

Disable intelligent shortening - issue 1540
This commit is contained in:
Tobias Diekershoff
2015-05-16 12:04:28 +02:00
2 changed files with 24 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);
}