]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix for #2227: 'view profile designs' and other default-on options are initially...
authorBrion Vibber <brion@pobox.com>
Tue, 21 Sep 2010 00:37:21 +0000 (17:37 -0700)
committerBrion Vibber <brion@pobox.com>
Tue, 21 Sep 2010 00:37:21 +0000 (17:37 -0700)
classes/User.php

index 4c25ee3d97e7efebd95897cfcab46ef989002fa0..080e338fe7d0fa2d1b389869f37cabf0671f8ac3 100644 (file)
@@ -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))) {