From d3279a615726efb0147a14140a16d6b62f650f77 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 16 Jul 2012 21:20:04 -0700 Subject: more search cleanup --- include/conversation.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/conversation.php') diff --git a/include/conversation.php b/include/conversation.php index 7beff3b03..ca7d9cc4c 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -406,11 +406,19 @@ function conversation(&$a, $items, $mode, $update, $preview = false) { $likebuttons = false; $shareable = false; + $tags=array(); + $terms = get_terms_oftype($item['term'],array(TERM_HASHTAG,TERM_MENTION,TERM_UNKNOWN)); + if(count($terms)) + foreach($terms as $tag) + $tags[] = format_term_for_display($tag); + + $body = prepare_body($item,true); //$tmp_item = replace_macros($tpl,array( $tmp_item = array( 'template' => $tpl, + 'tags' => $tags, 'id' => (($preview) ? 'P0' : $item['item_id']), 'linktitle' => sprintf( t('View %s\'s profile @ %s'), $profile_name, ((strlen($item['author-link'])) ? $item['author-link'] : $item['url'])), 'profile_url' => $profile_link, -- cgit v1.2.3