From acf1c3956cf35a27609fd9eb30724c01b804c4e7 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 10 May 2014 00:24:15 +0200 Subject: [PATCH] Only show connectors when not "hide wall" is enabled. --- include/conversation.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index 8e868afec7..ddb01ec9b8 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1043,13 +1043,18 @@ function status_editor($a,$x, $notes_cid = 0, $popup=false) { } } - if($mail_enabled) { - $selected = (($pubmail_enabled) ? ' checked="checked" ' : ''); - $jotnets .= '
' . t("Post to Email") . '
'; - } + if (!$a->user['hidewall']) { + if($mail_enabled) { + $selected = (($pubmail_enabled) ? ' checked="checked" ' : ''); + $jotnets .= '
' . t("Post to Email") . '
'; + } + + call_hooks('jot_networks', $jotnets); + } else + $jotnets .= sprintf(t('Connectors disabled, since "%s" is enabled.'), + t('Hide your profile details from unknown viewers?')); call_hooks('jot_tool', $jotplugins); - call_hooks('jot_networks', $jotnets); if($notes_cid) $jotnets .= '';