X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fitem.php;h=e23e9fb4c4fa86814c4c4b367434c5de5ec49d6e;hb=316d50cf7aad7f2db21fab988ea5abaddf667750;hp=924059df815b4f00637a35e59c22e3328c7475fd;hpb=25992b063ac984d42c8d0f63f45f77eab1ee34be;p=friendica.git diff --git a/mod/item.php b/mod/item.php index 924059df81..e23e9fb4c4 100644 --- a/mod/item.php +++ b/mod/item.php @@ -239,6 +239,8 @@ function item_post(App $a) { $att_bbcode = "\n" . PageInfo::getFooterFromData($attachment); $body .= $att_bbcode; + } elseif (preg_match("/\[attachment\](.*?)\[\/attachment\]/ism", $body, $matches)) { + $body = preg_replace("/\[attachment].*?\[\/attachment\]/ism", PageInfo::getFooterFromUrl($matches[1]), $body); } // Convert links with empty descriptions to links without an explicit description