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 6 years ago
parent
commit
6aeaf0815f
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      include/plaintext.php

+ 2
- 1
include/plaintext.php View File

@ -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