If a message is transmitted to a network that requires shortening (Twitter, Statusnet, ADN), then the shortened link will be the link to the friendica post if it was a shared post.

This commit is contained in:
Michael Vogel 2014-08-25 23:38:13 +02:00
parent 69bb3ff637
commit 6aeaf0815f

View File

@ -180,7 +180,8 @@ function plaintext($a, $b, $limit = 0, $includedlinks = false, $htmlmode = 2) {
if (!isset($post["url"])) { if (!isset($post["url"])) {
$limit = $limit - 23; $limit = $limit - 23;
$post["url"] = $b["plink"]; $post["url"] = $b["plink"];
} } elseif (strpos($b["body"], "[share") !== false)
$post["url"] = $b["plink"];
$msg = shortenmsg($msg, $limit); $msg = shortenmsg($msg, $limit);
} }