aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Manage.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-09-21 07:40:00 +0000
committerMario <mario@mariovavti.com>2021-09-21 07:40:00 +0000
commit26ac452c96ce499c140bcbae78643b8fe39b4243 (patch)
tree878e7482466e4886bcde0b4570f109aa07574506 /Zotlabs/Module/Manage.php
parent7122e1522ab9350755f0c34131f1be074b0ed79e (diff)
downloadvolse-hubzilla-26ac452c96ce499c140bcbae78643b8fe39b4243.tar.gz
volse-hubzilla-26ac452c96ce499c140bcbae78643b8fe39b4243.tar.bz2
volse-hubzilla-26ac452c96ce499c140bcbae78643b8fe39b4243.zip
mod manage: do not query info which we do not use in the UI and probably should not due to performance considerations
Diffstat (limited to 'Zotlabs/Module/Manage.php')
-rw-r--r--Zotlabs/Module/Manage.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Module/Manage.php b/Zotlabs/Module/Manage.php
index e7d9d5cba..3f168c15d 100644
--- a/Zotlabs/Module/Manage.php
+++ b/Zotlabs/Module/Manage.php
@@ -61,7 +61,7 @@ class Manage extends \Zotlabs\Web\Controller {
$channels[$x]['default'] = (($channels[$x]['channel_id'] == $account['account_default_channel']) ? "1" : '');
$channels[$x]['default_links'] = '1';
-
+ /* this is not currently implemented in the UI and probably should not (performance)
$c = q("SELECT id, item_wall FROM item
WHERE item_unseen = 1 and uid = %d " . item_normal(),
intval($channels[$x]['channel_id'])
@@ -75,7 +75,7 @@ class Manage extends \Zotlabs\Web\Controller {
$channels[$x]['network'] ++;
}
}
-
+ */
$intr = q("SELECT COUNT(abook.abook_id) AS total FROM abook left join xchan on abook.abook_xchan = xchan.xchan_hash where abook_channel = %d and abook_pending = 1 and abook_self = 0 and abook_ignored = 0 and xchan_deleted = 0 and xchan_orphan = 0 ",
intval($channels[$x]['channel_id'])
@@ -84,6 +84,7 @@ class Manage extends \Zotlabs\Web\Controller {
if($intr)
$channels[$x]['intros'] = intval($intr[0]['total']);
+ /* this is not currently implemented in the UI and probably should not (performance)
$events = q("SELECT etype, dtstart, adjust FROM event
WHERE event.uid = %d AND dtstart < '%s' AND dtstart > '%s' and dismissed = 0
ORDER BY dtstart ASC ",
@@ -116,6 +117,7 @@ class Manage extends \Zotlabs\Web\Controller {
}
}
}
+ */
}
}