Browse Source

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.

pull/1084/head
Michael Vogel 7 years ago
parent
commit
6aeaf0815f
  1. 3
      include/plaintext.php

3
include/plaintext.php

@ -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…
Cancel
Save