diff options
author | Mario <mario@mariovavti.com> | 2025-05-04 04:36:12 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-05-04 04:36:12 +0000 |
commit | b694ed62295f5665fc7a377b0bfdf294d4b371dc (patch) | |
tree | 3ce169f46f856ccaa6de49441eb0abd6a89a392a /Zotlabs/Module/Network.php | |
parent | b4f7daadfbabb71dc69cd903a62b18add231e9dd (diff) | |
download | volse-hubzilla-b694ed62295f5665fc7a377b0bfdf294d4b371dc.tar.gz volse-hubzilla-b694ed62295f5665fc7a377b0bfdf294d4b371dc.tar.bz2 volse-hubzilla-b694ed62295f5665fc7a377b0bfdf294d4b371dc.zip |
handle blog_mode in conv template
Diffstat (limited to 'Zotlabs/Module/Network.php')
-rw-r--r-- | Zotlabs/Module/Network.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Module/Network.php b/Zotlabs/Module/Network.php index 7fa4df456..8dfed2c3a 100644 --- a/Zotlabs/Module/Network.php +++ b/Zotlabs/Module/Network.php @@ -428,6 +428,12 @@ class Network extends \Zotlabs\Web\Controller { $uids = ' and item.uid = ' . local_channel() . ' '; $page_mode = 'client'; + + $blog_mode = feature_enabled(local_channel(), 'network_list_mode'); + if ($blog_mode) { + $page_mode = 'list'; + } + $parents_str = ''; // This fixes a very subtle bug so I'd better explain it. You wake up in the morning or return after a day @@ -500,7 +506,7 @@ class Network extends \Zotlabs\Web\Controller { if($r) { $parents_str = ids_to_querystr($r, 'item_id'); - $items = items_by_parent_ids($parents_str, blog_mode: feature_enabled(local_channel(), 'network_list_mode')); + $items = items_by_parent_ids($parents_str, blog_mode: $blog_mode); xchan_query($items, true); $items = fetch_post_tags($items, true); |