From: Michael Vogel Date: Fri, 9 May 2014 22:24:15 +0000 (+0200) Subject: Only show connectors when not "hide wall" is enabled. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=acf1c3956cf35a27609fd9eb30724c01b804c4e7;p=friendica.git Only show connectors when not "hide wall" is enabled. --- 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 .= '';