From: Michael Date: Fri, 7 Oct 2022 07:55:44 +0000 (+0000) Subject: Whitespace removed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f8d4ab1830e286f5d8005c79dd6269f21739f3c9;p=friendica.git Whitespace removed --- diff --git a/mod/item.php b/mod/item.php index 4dc1d77ce3..6c01cdbc18 100644 --- a/mod/item.php +++ b/mod/item.php @@ -401,7 +401,7 @@ function item_post(App $a) { $body = $item['body']; $inform = $item['inform']; $postopts = $item['postopts']; - $private = $item['private']; + $private = $item['private']; $str_contact_allow = $item['allow_cid']; $str_group_allow = $item['allow_gid']; $str_contact_deny = $item['deny_cid']; diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index fe2e94c684..bef48dcac8 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -294,7 +294,7 @@ class BBCode // Simplify image codes $post['text'] = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/ism", '[img]$3[/img]', $post['text']); $post['text'] = preg_replace("/\[img\=(.*?)\](.*?)\[\/img\]/ism", '[img]$1[/img]', $post['text']); - + // if nothing is found, it maybe having an image. if (!isset($post['type'])) { if (preg_match_all("#\[url=([^\]]+?)\]\s*\[img\]([^\[]+?)\[/img\]\s*\[/url\]#ism", $post['text'], $pictures, PREG_SET_ORDER)) {