X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fcommunity.php;h=89a369d94f2577a47332b2cead1247559edc31d2;hb=93fb98959a798cca0eb4709a38508b7e7b6d5b9e;hp=5c71667bdcc197c0c83dd1909c2a405e0a70e747;hpb=4a473611163a12b48d3bbad71dc54765be8789f9;p=friendica.git diff --git a/mod/community.php b/mod/community.php index 5c71667bdc..89a369d94f 100644 --- a/mod/community.php +++ b/mod/community.php @@ -68,14 +68,14 @@ function community_content(App $a, $update = 0) { } $previousauthor = $item["author-link"]; - if (($numposts < $maxpostperauthor) AND (sizeof($s) < $a->pager['itemspage'])) { + if (($numposts < $maxpostperauthor) && (sizeof($s) < $a->pager['itemspage'])) { $s[] = $item; } } if ((sizeof($s) < $a->pager['itemspage'])) { $r = community_getitems($a->pager['start'] + ($count * $a->pager['itemspage']), $a->pager['itemspage']); } - } while ((sizeof($s) < $a->pager['itemspage']) AND (++$count < 50) AND (sizeof($r) > 0)); + } while ((sizeof($s) < $a->pager['itemspage']) && (++$count < 50) && (sizeof($r) > 0)); } else { $s = $r; } @@ -115,10 +115,10 @@ function community_getpublicitems($start, $itemspage) { $r = qu("SELECT %s FROM `thread` INNER JOIN `item` ON `item`.`id` = `thread`.`iid` %s - WHERE `thread`.`uid` = 0 + WHERE `thread`.`uid` = 0 AND `verb` = '%s' ORDER BY `thread`.`created` DESC LIMIT %d, %d", item_fieldlists(), item_joins(), - intval($start), intval($itemspage) + dbesc(ACTIVITY_POST), intval($start), intval($itemspage) ); return($r);