]> git.mxchange.org Git - friendica.git/commitdiff
If a message is transmitted to a network that requires shortening (Twitter, Statusnet...
authorMichael Vogel <icarus@dabo.de>
Mon, 25 Aug 2014 21:38:13 +0000 (23:38 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 25 Aug 2014 21:38:13 +0000 (23:38 +0200)
include/plaintext.php

index eb33d16e968f8ecc52e3fc84014ab6e6f9379e85..56f0c7873d9943299affb7039b3b3ed9ecb0755d 100644 (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);
                }