diff options
author | friendica <info@friendica.com> | 2013-08-18 20:20:03 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-08-18 20:20:03 -0700 |
commit | 20f3d097080fde4315b25523fe29b129cdd7034c (patch) | |
tree | 3f04bbccf15162d83db7951eaa072e479f6b4e38 /include/follow.php | |
parent | e094c23f11c8a164224e8a35c77d2cfa089db7ed (diff) | |
download | volse-hubzilla-20f3d097080fde4315b25523fe29b129cdd7034c.tar.gz volse-hubzilla-20f3d097080fde4315b25523fe29b129cdd7034c.tar.bz2 volse-hubzilla-20f3d097080fde4315b25523fe29b129cdd7034c.zip |
some sane permission defaults.
Diffstat (limited to 'include/follow.php')
-rw-r--r-- | include/follow.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/follow.php b/include/follow.php index 6b192234c..ce550b07f 100644 --- a/include/follow.php +++ b/include/follow.php @@ -145,12 +145,13 @@ function new_contact($uid,$url,$channel,$interactive = false) { ); } else { - $r = q("insert into abook ( abook_account, abook_channel, abook_xchan, abook_their_perms, abook_created, abook_updated ) - values( %d, %d, '%s', %d, '%s', '%s' ) ", + $r = q("insert into abook ( abook_account, abook_channel, abook_xchan, abook_their_perms, abook_my_perms, abook_created, abook_updated ) + values( %d, %d, '%s', %d, %d, '%s', '%s' ) ", intval($aid), intval($uid), dbesc($xchan_hash), intval($their_perms), + intval(PERMS_W_STREAM|PERMS_W_MAIL), dbesc(datetime_convert()), dbesc(datetime_convert()) ); |