aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Channel.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-04-25 12:46:30 +0000
committerMario <mario@mariovavti.com>2025-04-25 12:46:30 +0000
commitba9637e129b13e85b360b8914a2c876dceb72362 (patch)
tree34859509631e54bb2e449b9bddaf08264e4ca8bd /Zotlabs/Module/Channel.php
parenta48a72d1cd76fd5c8e343f3f8f73a27a0e920f81 (diff)
downloadvolse-hubzilla-ba9637e129b13e85b360b8914a2c876dceb72362.tar.gz
volse-hubzilla-ba9637e129b13e85b360b8914a2c876dceb72362.tar.bz2
volse-hubzilla-ba9637e129b13e85b360b8914a2c876dceb72362.zip
lazy load - initial commit
Diffstat (limited to 'Zotlabs/Module/Channel.php')
-rw-r--r--Zotlabs/Module/Channel.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php
index f3855b7e8..d8b503b37 100644
--- a/Zotlabs/Module/Channel.php
+++ b/Zotlabs/Module/Channel.php
@@ -410,14 +410,7 @@ class Channel extends Controller {
if ($r) {
$parents_str = ids_to_querystr($r, 'item_id');
- $r = q("SELECT item.*, item.id AS item_id
- FROM item
- WHERE item.uid = %d $item_normal
- AND item.parent IN ( %s )
- $sql_extra ",
- intval(App::$profile['profile_uid']),
- dbesc($parents_str)
- );
+ $r = items_by_parent_ids($parents_str, $sql_extra);
xchan_query($r);
$items = fetch_post_tags($r, true);
@@ -434,11 +427,8 @@ class Channel extends Controller {
$items = [];
}
-
-
$mode = (($search) ? 'search' : 'channel');
-
if ((!$update) && (!$load)) {
// This is ugly, but we can't pass the profile_uid through the session to the ajax updater,