aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-24 20:10:20 -0700
committerredmatrix <mike@macgirvin.com>2016-09-24 20:10:20 -0700
commitbfc2552841ce0a018e70dae16fddf690a892b49d (patch)
tree7d4e4db2d8872c72480ee332f6660efda19acb57 /Zotlabs
parent39dc4fc99224659ec3f7b808f419892b81052323 (diff)
downloadvolse-hubzilla-bfc2552841ce0a018e70dae16fddf690a892b49d.tar.gz
volse-hubzilla-bfc2552841ce0a018e70dae16fddf690a892b49d.tar.bz2
volse-hubzilla-bfc2552841ce0a018e70dae16fddf690a892b49d.zip
more infrastructure for notification auto-scroll to comment
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/ThreadItem.php7
1 files changed, 5 insertions, 2 deletions
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) {