diff options
author | Mario <mario@mariovavti.com> | 2025-04-25 12:46:30 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-04-25 12:46:30 +0000 |
commit | ba9637e129b13e85b360b8914a2c876dceb72362 (patch) | |
tree | 34859509631e54bb2e449b9bddaf08264e4ca8bd /Zotlabs/Module/Display.php | |
parent | a48a72d1cd76fd5c8e343f3f8f73a27a0e920f81 (diff) | |
download | volse-hubzilla-ba9637e129b13e85b360b8914a2c876dceb72362.tar.gz volse-hubzilla-ba9637e129b13e85b360b8914a2c876dceb72362.tar.bz2 volse-hubzilla-ba9637e129b13e85b360b8914a2c876dceb72362.zip |
lazy load - initial commit
Diffstat (limited to 'Zotlabs/Module/Display.php')
-rw-r--r-- | Zotlabs/Module/Display.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php index 090e0c92e..227e47e64 100644 --- a/Zotlabs/Module/Display.php +++ b/Zotlabs/Module/Display.php @@ -290,11 +290,9 @@ class Display extends Controller { if($r) { $parents_str = ids_to_querystr($r,'item_id'); if($parents_str) { - $items = q("SELECT item.*, item.id AS item_id - FROM item - WHERE parent in ( %s ) $sql_extra $item_normal ", - dbesc($parents_str) - ); + + $items = items_by_parent_ids($parents_str, $sql_extra); + xchan_query($items); $items = fetch_post_tags($items,true); $items = conv_sort($items,'created'); |