diff options
author | zottel <github@zottel.net> | 2011-12-06 00:02:29 -0800 |
---|---|---|
committer | zottel <github@zottel.net> | 2011-12-06 00:02:29 -0800 |
commit | cd3a02ab8e5aa2dc56ba3939e5d480e4966b11aa (patch) | |
tree | 2efc84f14303c5d8dd283a93b64f02851e969e3f /mod/contacts.php | |
parent | c5c99089ff363831f199e27c188410fec682fda5 (diff) | |
parent | 47f369e052d296f4a744c1508efc58f6168b7e8b (diff) | |
download | volse-hubzilla-cd3a02ab8e5aa2dc56ba3939e5d480e4966b11aa.tar.gz volse-hubzilla-cd3a02ab8e5aa2dc56ba3939e5d480e4966b11aa.tar.bz2 volse-hubzilla-cd3a02ab8e5aa2dc56ba3939e5d480e4966b11aa.zip |
Merge remote branch 'upstream/master'
Diffstat (limited to 'mod/contacts.php')
-rw-r--r-- | mod/contacts.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/contacts.php b/mod/contacts.php index 59dafd51c..51c6920d3 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -78,6 +78,7 @@ function contacts_post(&$a) { } } + $hidden = intval($_POST['hidden']); $priority = intval($_POST['poll']); if($priority > 5 || $priority < 0) @@ -85,11 +86,12 @@ function contacts_post(&$a) { $info = escape_tags(trim($_POST['info'])); - $r = q("UPDATE `contact` SET `profile-id` = %d, `priority` = %d , `info` = '%s' - WHERE `id` = %d AND `uid` = %d LIMIT 1", + $r = q("UPDATE `contact` SET `profile-id` = %d, `priority` = %d , `info` = '%s', + `hidden` = %d WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($profile_id), intval($priority), dbesc($info), + intval($hidden), intval($contact_id), intval(local_user()) ); @@ -334,6 +336,7 @@ function contacts_content(&$a) { '$info' => $contact['info'], '$blocked' => (($contact['blocked']) ? t('Currently blocked') : ''), '$ignored' => (($contact['readonly']) ? t('Currently ignored') : ''), + '$hidden' => array('hidden', t('Hide this contact from others'), ($contact['hidden'] == 1), t('Replies/likes to your public posts <strong>may</strong> still be visible')), '$photo' => $contact['photo'], '$name' => $contact['name'], '$dir_icon' => $dir_icon, |