tag display with item

This commit is contained in:
Friendika 2011-10-24 17:25:49 -07:00
parent 3b33c0d075
commit 790c4a4e1a
2 changed files with 12 additions and 1 deletions

View File

@ -787,6 +787,15 @@ function prepare_body($item,$attach = false) {
$s .= '<div class="clear"></div></div>';
}
$arr = explode(',',$item['tag']);
if(count($arr)) {
$s .= '<div class="body-tag">';
foreach($arr as $r) {
$s .= bbcode($r) . ' ';
}
$s .= '</div>';
}
$prep_arr = array('item' => $item, 'html' => $s);
call_hooks('prepare_body_final', $prep_arr);
return $prep_arr['html'];

View File

@ -12,6 +12,8 @@ function tagger_content(&$a) {
}
$term = notags(trim($_GET['term']));
// no commas allowed
$term = str_replace(',','',$term);
if(! $term)
return;