aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorM.Dent <dentm42@dm42.net>2018-08-23 23:54:18 -0400
committerM.Dent <dentm42@dm42.net>2018-08-23 23:54:18 -0400
commit2893f7d4810de99a989f7d36d041a120fafac029 (patch)
treecd27208d2903558cbd4b7770da5b7d4843c1ba05 /Zotlabs
parentcc03e1ceefa335f4585f2e587b67481e10ba5c8e (diff)
downloadvolse-hubzilla-2893f7d4810de99a989f7d36d041a120fafac029.tar.gz
volse-hubzilla-2893f7d4810de99a989f7d36d041a120fafac029.tar.bz2
volse-hubzilla-2893f7d4810de99a989f7d36d041a120fafac029.zip
Get full page of items
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Network.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Network.php b/Zotlabs/Module/Network.php
index ca0ec7844..9eedf113d 100644
--- a/Zotlabs/Module/Network.php
+++ b/Zotlabs/Module/Network.php
@@ -510,7 +510,7 @@ class Network extends \Zotlabs\Web\Controller {
if($load) {
// Fetch a page full of parent items for this page
- $r = q("SELECT item.parent AS item_id FROM item
+ $r = q("SELECT DISTINCT(item.parent) AS item_id FROM item
left join abook on ( item.owner_xchan = abook.abook_xchan $abook_uids )
$net_query
WHERE true $uids $item_thread_top $item_normal
@@ -524,7 +524,7 @@ class Network extends \Zotlabs\Web\Controller {
else {
// this is an update
- $r = q("SELECT item.parent AS item_id FROM item
+ $r = q("SELECT DISTINCT(item.parent) AS item_id FROM item
left join abook on ( item.owner_xchan = abook.abook_xchan $abook_uids )
$net_query
WHERE true $uids $item_normal_update $simple_update