]> git.mxchange.org Git - friendica.git/blobdiff - mod/community.php
Merge pull request #3627 from tobiasd/20170812-invite
[friendica.git] / mod / community.php
index b1995c70021752e9ff8727826e5f8bdecee7d610..89a369d94f2577a47332b2cead1247559edc31d2 100644 (file)
@@ -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);