aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-10 19:28:02 -0700
committerfriendica <info@friendica.com>2012-07-10 19:28:02 -0700
commite7957e14489ce8eb3b69ebede928dfe441a4924d (patch)
treee25fde990e36171053364c71471d9b90fd5633ef /mod/network.php
parent94fabe3a2942ca93b436694f180f8eb2a72df918 (diff)
downloadvolse-hubzilla-e7957e14489ce8eb3b69ebede928dfe441a4924d.tar.gz
volse-hubzilla-e7957e14489ce8eb3b69ebede928dfe441a4924d.tar.bz2
volse-hubzilla-e7957e14489ce8eb3b69ebede928dfe441a4924d.zip
create fetch_tags function, make search work again, change logo
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php14
1 files changed, 2 insertions, 12 deletions
diff --git a/mod/network.php b/mod/network.php
index a136e12d6..21a43f9cb 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -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);
-
- $tags = q("select * from term where oid in ( %s ) and otype = %d",
- dbesc($tag_finder_str),
- intval(TERM_OBJ_POST)
- );
+ $items = fetch_post_tags($items);
- $items = conv_sort($items,$tags,$ordering);
+ $items = conv_sort($items,$ordering);
} else {