From 624196711242cb5bf398ff2d368e73a10e65b67e Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 20 Nov 2017 09:57:07 +0100 Subject: speed up initial query if no mid is provided --- Zotlabs/Module/Hq.php | 1 + 1 file changed, 1 insertion(+) (limited to 'Zotlabs/Module') diff --git a/Zotlabs/Module/Hq.php b/Zotlabs/Module/Hq.php index 41e9d40ca..ad39768f4 100644 --- a/Zotlabs/Module/Hq.php +++ b/Zotlabs/Module/Hq.php @@ -46,6 +46,7 @@ class Hq extends \Zotlabs\Web\Controller { $r = q("SELECT mid FROM item WHERE uid = %d + AND item_unseen = 1 AND mid = parent_mid $item_normal ORDER BY id DESC -- cgit v1.2.3