X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FImages.php;h=aed72f065b7c8c0810efa22c0aaa938ca6c7c46c;hb=e1863951986ba5be173758324a00652bc5af870c;hp=90c2aae9db987a59cf4de88262df3d97faea12b5;hpb=c5ca5bfdf84f6fb5e4ba4d8509df25c58aeb516a;p=friendica.git diff --git a/src/Util/Images.php b/src/Util/Images.php index 90c2aae9db..aed72f065b 100644 --- a/src/Util/Images.php +++ b/src/Util/Images.php @@ -343,11 +343,13 @@ class Images * @param string $preview Preview image URL * @param string $description * @return string - */ public static function getBBCodeByUrl(string $photo, string $preview = null, string $description = ''): string + */ + public static function getBBCodeByUrl(string $photo, string $preview = null, string $description = ''): string { if (!empty($preview)) { return '[url=' . $photo . '][img=' . $preview . ']' . $description . '[/img][/url]'; } + return '[img=' . $photo . ']' . $description . '[/img]'; } }