aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-07 17:51:10 -0700
committerfriendica <info@friendica.com>2013-08-07 17:51:10 -0700
commit4cda133e89474483c283e4a5e34ca87b4b3dd9a4 (patch)
tree77d4772efe7316bfe2397d31edced15d99e71584 /include
parent38d9cf4327fe108df3c269b187f5ef633c651a80 (diff)
downloadvolse-hubzilla-4cda133e89474483c283e4a5e34ca87b4b3dd9a4.tar.gz
volse-hubzilla-4cda133e89474483c283e4a5e34ca87b4b3dd9a4.tar.bz2
volse-hubzilla-4cda133e89474483c283e4a5e34ca87b4b3dd9a4.zip
Add public visibility setting to privacy groups (collections). This doesn't yet make them visible, but allows them to be visible (like a Cc: instead of a Bcc:)
Diffstat (limited to 'include')
-rw-r--r--include/group.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/group.php b/include/group.php
index ff17a726c..7ba14a49d 100644
--- a/include/group.php
+++ b/include/group.php
@@ -1,7 +1,7 @@
<?php /** @file */
-function group_add($uid,$name) {
+function group_add($uid,$name,$public = 0) {
$ret = false;
if(x($uid) && x($name)) {
@@ -37,10 +37,11 @@ function group_add($uid,$name) {
} while($dups == true);
- $r = q("INSERT INTO `group` ( hash, uid, name )
- VALUES( '%s', %d, '%s' ) ",
+ $r = q("INSERT INTO `group` ( hash, uid, visible, name )
+ VALUES( '%s', %d, %d, '%s' ) ",
dbesc($hash),
intval($uid),
+ intval($public),
dbesc($name)
);
$ret = $r;