From 0bec45e5703a6f9845ae869a1b9a44f2ed559675 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 9 Jul 2015 21:03:10 +0200 Subject: do not show status editor in /display - we most probably want to read the thread or comment. --- mod/display.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mod/display.php') diff --git a/mod/display.php b/mod/display.php index b5daea2de..0331ffe4b 100644 --- a/mod/display.php +++ b/mod/display.php @@ -52,6 +52,7 @@ function display_content(&$a, $update = 0, $load = false) { 'deny_gid' => $channel['channel_deny_gid'] ); +/* $x = array( 'is_owner' => true, 'allow_location' => ((intval(get_pconfig($channel['channel_id'],'system','use_browser_location'))) ? '1' : ''), @@ -67,7 +68,7 @@ function display_content(&$a, $update = 0, $load = false) { ); $o .= status_editor($a,$x); - +*/ } // This page can be viewed by anybody so the query could be complicated -- cgit v1.2.3 From c7b55f775384dbb991fdac8e9f074208083df9f8 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 9 Jul 2015 22:31:21 +0200 Subject: revert do not show status editor in /display - we most probably want to read the thread or comment. --- mod/display.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/display.php') diff --git a/mod/display.php b/mod/display.php index 0331ffe4b..4a419daa5 100644 --- a/mod/display.php +++ b/mod/display.php @@ -52,7 +52,7 @@ function display_content(&$a, $update = 0, $load = false) { 'deny_gid' => $channel['channel_deny_gid'] ); -/* + $x = array( 'is_owner' => true, 'allow_location' => ((intval(get_pconfig($channel['channel_id'],'system','use_browser_location'))) ? '1' : ''), @@ -68,7 +68,7 @@ function display_content(&$a, $update = 0, $load = false) { ); $o .= status_editor($a,$x); -*/ + } // This page can be viewed by anybody so the query could be complicated -- cgit v1.2.3 From b6f28900e686dc7acffd03035bcc249130a7db87 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 10 Jul 2015 21:48:24 +0200 Subject: show status editor in /display on share action. --- mod/display.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mod/display.php') diff --git a/mod/display.php b/mod/display.php index 4a419daa5..8c4707bb2 100644 --- a/mod/display.php +++ b/mod/display.php @@ -64,10 +64,13 @@ function display_content(&$a, $update = 0, $load = false) { 'bang' => '', 'visitor' => true, 'profile_uid' => local_channel(), - 'return_path' => 'channel/' . $channel['channel_address'] + 'return_path' => 'channel/' . $channel['channel_address'], + 'expanded' => true ); + $o = '
'; $o .= status_editor($a,$x); + $o .= '
'; } -- cgit v1.2.3