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:
parent
69bb3ff637
commit
6aeaf0815f
1 changed files with 2 additions and 1 deletions
|
@ -180,7 +180,8 @@ function plaintext($a, $b, $limit = 0, $includedlinks = false, $htmlmode = 2) {
|
|||
if (!isset($post["url"])) {
|
||||
$limit = $limit - 23;
|
||||
$post["url"] = $b["plink"];
|
||||
}
|
||||
} elseif (strpos($b["body"], "[share") !== false)
|
||||
$post["url"] = $b["plink"];
|
||||
|
||||
$msg = shortenmsg($msg, $limit);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue