aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-04 17:46:04 -0800
committerfriendica <info@friendica.com>2013-02-04 17:46:04 -0800
commitda388f4bc5bd3a1aaea3c54b94fe1f8e4cf10561 (patch)
treefe259a2abd9d7e07ecdbc64af822e69f817de7f5 /mod/network.php
parentff0a73bf40d0503eb5a4d48be60666b73c47d4f9 (diff)
downloadvolse-hubzilla-da388f4bc5bd3a1aaea3c54b94fe1f8e4cf10561.tar.gz
volse-hubzilla-da388f4bc5bd3a1aaea3c54b94fe1f8e4cf10561.tar.bz2
volse-hubzilla-da388f4bc5bd3a1aaea3c54b94fe1f8e4cf10561.zip
fix new/search mod on network page, fix the parent queries on network and channel pages - which you probably didn't even notice were all stuffed up because the endless scroll made things right.
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/network.php b/mod/network.php
index 837ac7aea..fb457a7f1 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -622,7 +622,7 @@ function network_content(&$a, $update = 0, $load = false) {
// Fetch a page full of parent items for this page
- $r = q("SELECT item.id AS item_id FROM item
+ $r = q("SELECT distinct item.id AS item_id FROM item
left join abook on item.author_xchan = abook.abook_xchan
WHERE item.uid = %d AND item.item_restrict = 0
AND item.parent = item.id