]> git.mxchange.org Git - friendica.git/commitdiff
This is a fix for issue 3536. Now likes aren't show anymore on the community page.
authorMichael <heluecht@pirati.ca>
Mon, 31 Jul 2017 19:29:43 +0000 (19:29 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 31 Jul 2017 19:29:43 +0000 (19:29 +0000)
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);