diff options
author | Mario <mario@mariovavti.com> | 2025-05-23 11:35:10 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-05-23 11:35:10 +0000 |
commit | 043c1610fd22b73f8f1fca5643cb4eedcf8d5d0f (patch) | |
tree | 6e3ee17507cbde71690b575755de4cf7ae82c19a /Zotlabs/Module | |
parent | 84a4927866dd1b6b11fa46bde3df64ca20906191 (diff) | |
download | volse-hubzilla-043c1610fd22b73f8f1fca5643cb4eedcf8d5d0f.tar.gz volse-hubzilla-043c1610fd22b73f8f1fca5643cb4eedcf8d5d0f.tar.bz2 volse-hubzilla-043c1610fd22b73f8f1fca5643cb4eedcf8d5d0f.zip |
refactor items_by_parent_ids() to accept $thr_parents as an array and stringify it here with the escape flag instead of in the caller modules
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Display.php | 4 | ||||
-rw-r--r-- | Zotlabs/Module/Hq.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php index 4b5b69405..07973431c 100644 --- a/Zotlabs/Module/Display.php +++ b/Zotlabs/Module/Display.php @@ -290,8 +290,8 @@ class Display extends Controller { if($r) { $parents_str = ids_to_querystr($r,'item_id'); if($parents_str) { - $thr_parents_str = stringify_array(get_recursive_thr_parents($target_item), true); - $items = items_by_parent_ids($parents_str, $thr_parents_str, $permission_sql); + $thr_parents = get_recursive_thr_parents($target_item); + $items = items_by_parent_ids($parents_str, $thr_parents, $permission_sql); xchan_query($items); $items = fetch_post_tags($items,true); diff --git a/Zotlabs/Module/Hq.php b/Zotlabs/Module/Hq.php index 890e82086..562278973 100644 --- a/Zotlabs/Module/Hq.php +++ b/Zotlabs/Module/Hq.php @@ -200,8 +200,8 @@ class Hq extends \Zotlabs\Web\Controller { } if($r) { - $thr_parents_str = stringify_array(get_recursive_thr_parents($target_item), true); - $items = items_by_parent_ids($r[0]['item_id'], $thr_parents_str); + $thr_parents = get_recursive_thr_parents($target_item); + $items = items_by_parent_ids($r[0]['item_id'], $thr_parents); xchan_query($items,true,(($sys_item) ? local_channel() : 0)); $items = fetch_post_tags($items,true); |