This commit is contained in:
friendica
2012-07-09 23:23:20 -07:00
parent 5355193b63
commit 1215de575d
421 changed files with 69069 additions and 1 deletions
+13 -1
View File
@@ -278,7 +278,19 @@ function content_content(&$a, $update = 0) {
$second = dba_timer();
$items = conv_sort($items,$ordering);
$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);
$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);
} else {
$items = array();