]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add inboxes for new users
authorEvan Prodromou <evan@prodromou.name>
Sun, 16 Nov 2008 06:29:37 +0000 (01:29 -0500)
committerEvan Prodromou <evan@prodromou.name>
Sun, 16 Nov 2008 06:29:37 +0000 (01:29 -0500)
darcs-hash:20081116062937-84dde-2c2369d0513dba49514a6800f67324803d0fe335.gz

classes/User.php

index fa1ecdfa0fd2e9569afce6d331823b1145ffd66c..38a56d1c818af94c50464f5bc287da8d74b371bf 100644 (file)
@@ -196,6 +196,12 @@ class User extends Memcached_DataObject
                        }
                }
 
+               $inboxes = common_config('inboxes', 'enabled');
+               
+               if ($inboxes === true || $inboxes == 'transitional') {
+                       $user->inboxed = 1;
+               }
+               
                $user->created = common_sql_now();
                $user->uri = common_user_uri($user);