]> git.mxchange.org Git - friendica.git/blobdiff - include/api.php
Vier: Option to switch between shadow style and flat style.
[friendica.git] / include / api.php
index b9187ca3aa70ad79cf0d055abb807670eaef55e0..d98ad970d59532a51a304fe6c63251758126a697 100644 (file)
                if ($include_entities != "true")
                        return array();
 
+               $bbcode = bb_CleanPictureLinks($bbcode);
+
                // Change pure links in text to bbcode uris
                $bbcode = preg_replace("/([^\]\='".'"'."]|^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,]+)/ism", '$1[url=$2]$2[/url]', $bbcode);
 
@@ -2392,6 +2394,8 @@ function api_get_nick($profile) {
 function api_clean_plain_items($Text) {
        $include_entities = strtolower(x($_REQUEST,'include_entities')?$_REQUEST['include_entities']:"false");
 
+       $Text = bb_CleanPictureLinks($Text);
+
        if ($include_entities == "true") {
                $URLSearchString = "^\[\]";