]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: The function to remove parts of attachments forgot about the rest
authorMichael Vogel <icarus@dabo.de>
Tue, 19 Apr 2016 22:12:27 +0000 (00:12 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 1 May 2016 11:48:52 +0000 (13:48 +0200)
include/bbcode.php

index b2c278013d1e01650231235efef2218406467aa4..8f19566b587850286e0959769b4b49e87d31dd13 100644 (file)
@@ -94,17 +94,17 @@ function bb_remove_share_information($Text, $plaintext = false, $nolink = false)
                return $Text;
 
        if ($nolink)
-               return $data["text"];
+               return $data["text"].$data["after"];
 
        if ($plaintext)
                $data["title"] = $data["url"];
 
        if (($data["text"] == "") AND ($data["title"] != "") AND ($data["url"] == ""))
-               return $data["title"];
+               return $data["title"].$data["after"];
 
        // If the link already is included in the post, don't add it again
        if (($data["url"] != "") AND strpos($data["text"], $data["url"]))
-               return $data["text"];
+               return $data["text"].$data["after"];
 
        $text = $data["text"];
 
@@ -113,7 +113,7 @@ function bb_remove_share_information($Text, $plaintext = false, $nolink = false)
        elseif (($link != ""))
                $text .= "\n".$data["url"];
 
-       return $text;
+       return $text.$data["after"];
 }
 
 function bb_cleanstyle($st) {