network view all item types by date

This commit is contained in:
Friendika
2011-01-19 17:56:36 -08:00
parent e7c5f9e7de
commit b1d67c8d3c
6 changed files with 142 additions and 20 deletions

View File

@@ -81,6 +81,7 @@ function search_content(&$a) {
foreach($r as $item) {
$total = 0;
$comment = '';
$owner_url = '';
$owner_photo = '';
@@ -91,6 +92,8 @@ function search_content(&$a) {
&& ($item['id'] != $item['parent']))
continue;
$total ++;
$profile_name = ((strlen($item['author-name'])) ? $item['author-name'] : $item['name']);
$profile_avatar = ((strlen($item['author-avatar'])) ? $item['author-avatar'] : $item['thumb']);
$profile_link = ((strlen($item['author-link'])) ? $item['author-link'] : $item['url']);
@@ -130,6 +133,13 @@ function search_content(&$a) {
}
}
if(! $r[0]['total']) {
notice('No results.');
return $o;
}
$o .= paginate($a);
return $o;