summaryrefslogtreecommitdiff
path: root/classes/User.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-09-20 17:37:21 -0700
committerBrion Vibber <brion@pobox.com>2010-09-20 17:37:21 -0700
commit28b06864fbb5a14e4a1b06803461b4022682dac6 (patch)
tree9be3b6de9372b91425ce9c9e8717151aa12b55b3 /classes/User.php
parent85bf20d95afeadd682584e595df9157ad853a3ed (diff)
Fix for #2227: 'view profile designs' and other default-on options are initially mis-set to off due to caching at account creation
Diffstat (limited to 'classes/User.php')
-rw-r--r--classes/User.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/classes/User.php b/classes/User.php
index 4c25ee3d9..080e338fe 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -255,6 +255,19 @@ class User extends Memcached_DataObject
$user->inboxed = 1;
+ // Set default-on options here, otherwise they'll be disabled
+ // initially for sites using caching, since the initial encache
+ // doesn't know about the defaults in the database.
+ $user->emailnotifysub = 1;
+ $user->emailnotifyfav = 1;
+ $user->emailnotifynudge = 1;
+ $user->emailnotifymsg = 1;
+ $user->emailnotifyattn = 1;
+ $user->emailmicroid = 1;
+ $user->emailpost = 1;
+ $user->jabbermicroid = 1;
+ $user->viewdesigns = 1;
+
$user->created = common_sql_now();
if (Event::handle('StartUserRegister', array(&$user, &$profile))) {