From bfc2552841ce0a018e70dae16fddf690a892b49d Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sat, 24 Sep 2016 20:10:20 -0700 Subject: more infrastructure for notification auto-scroll to comment --- Zotlabs/Lib/ThreadItem.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index 2f5a0c325..a1e721dd7 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -412,8 +412,11 @@ class ThreadItem { if($visible_comments === false) $visible_comments = 3; - if(in_array(\App::$module,['display','update_display'])) - $visible_comments = 99999; +// needed for scroll to comment from notification but needs more work +// as we do not want to open all comments unless there is actually an #item_xx anchor +// and the url fragment is not sent to the server. +// if(in_array(\App::$module,['display','update_display'])) +// $visible_comments = 99999; if(($this->get_display_mode() === 'normal') && ($nb_children > 0)) { foreach($children as $child) { -- cgit v1.2.3