X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ftext.php;h=e0f38a3a0d4b8bf9ec53610459d7e0ca797f28b8;hb=1aba538c96628468b84136386496ccc69050e810;hp=ba6c2531fbeb380734a9de600ad6e800d04a35ae;hpb=4218e3f4945af7101c626852bda09d2c591b8e0c;p=friendica.git diff --git a/include/text.php b/include/text.php index ba6c2531fb..e0f38a3a0d 100644 --- a/include/text.php +++ b/include/text.php @@ -481,7 +481,7 @@ function get_tags($s) { // Otherwise pull out single word tags. These can be @nickname, @first_last // and #hash tags. - if(preg_match_all('/([@#][^ \x0D\x0A,:?]+)([ \x0D\x0A,:?]|$)/',$s,$match)) { + if(preg_match_all('/([@#][^ \x0D\x0A,;:?]+)([ \x0D\x0A,;:?]|$)/',$s,$match)) { foreach($match[1] as $mtch) { if(strstr($mtch,"]")) { // we might be inside a bbcode color tag - leave it alone @@ -787,6 +787,15 @@ function prepare_body($item,$attach = false) { $s .= '
'; } + $arr = explode(',',$item['tag']); + if(count($arr)) { + $s .= '
'; + foreach($arr as $r) { + $s .= bbcode($r) . ' '; + } + $s .= '
'; + } + $prep_arr = array('item' => $item, 'html' => $s); call_hooks('prepare_body_final', $prep_arr); return $prep_arr['html'];