X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FItemContent.php;h=c17625a7565aeb84a03991f5a13023a102ed3085;hb=82cef6c9e7326303d9790451d0a757978246b28c;hp=21dbd34d0a4feb7a7e62d5631c51992123933056;hpb=0ff51c2b13b56e97f9a5fd79c7222f3e6e3694f5;p=friendica.git diff --git a/src/Model/ItemContent.php b/src/Model/ItemContent.php index 21dbd34d0a..c17625a756 100644 --- a/src/Model/ItemContent.php +++ b/src/Model/ItemContent.php @@ -93,7 +93,7 @@ class ItemContent extends BaseObject } } - $html = Text\BBCode::convert($post['text'] . $post['after'], false, $htmlmode); + $html = Text\BBCode::convert($post['text'] . defaults($post, 'after', ''), false, $htmlmode); $msg = Text\HTML::toPlaintext($html, 0, true); $msg = trim(html_entity_decode($msg, ENT_QUOTES, 'UTF-8')); @@ -102,7 +102,7 @@ class ItemContent extends BaseObject if ($post['type'] == 'link') { $link = $post['url']; } elseif ($post['type'] == 'text') { - $link = $post['url']; + $link = defaults($post, 'url', ''); } elseif ($post['type'] == 'video') { $link = $post['url']; } elseif ($post['type'] == 'photo') {