create fetch_tags function, make search work again, change logo

This commit is contained in:
friendica
2012-07-10 19:28:02 -07:00
parent 94fabe3a29
commit e7957e1448
12 changed files with 61 additions and 49 deletions

View File

@@ -664,19 +664,9 @@ function network_content(&$a, $update = 0) {
dbesc($parents_str)
);
$tag_finder = array();
if(count($items))
foreach($items as $item)
if(! in_array($item['item_id'],$tag_finder))
$tag_finder[] = $item['item_id'];
$tag_finder_str = implode(', ', $tag_finder);
$items = fetch_post_tags($items);
$tags = q("select * from term where oid in ( %s ) and otype = %d",
dbesc($tag_finder_str),
intval(TERM_OBJ_POST)
);
$items = conv_sort($items,$tags,$ordering);
$items = conv_sort($items,$ordering);
} else {