]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/register.php
base class is_readonly() now returns false by default
[quix0rs-gnu-social.git] / actions / register.php
index 14cd53dca6a08115eeafc5fce72e7fa5bfb0aa55..6ac28305953fc7b1644c48bdcb297ea984cf1fff 100644 (file)
@@ -159,6 +159,20 @@ class RegisterAction extends Action {
                        return FALSE;
                }
 
+               # Everyone is subscribed to themself
+
+               $subscription = new Subscription();
+               $subscription->subscriber = $user->id;
+               $subscription->subscribed = $user->id;
+               $subscription->created = $user->created;
+               
+               $result = $subscription->insert();
+               
+               if (!$result) {
+                       common_log_db_error($subscription, 'INSERT', __FILE__);
+                       return FALSE;
+               }
+               
                if ($email) {
 
                        $confirm = new Confirm_address();
@@ -252,7 +266,7 @@ class RegisterAction extends Action {
                                                   '* Add a [Jabber/GTalk address](%%%%action.imsettings%%%%) so you can send notices through instant messages.' . "\n" .
                                                   '* [Search for people](%%%%action.peoplesearch%%%%) that you may know or that share your interests. ' . "\n" .
                                                   '* Update your [profile settings](%%%%action.profilesettings%%%%) to tell others more about you. ' . "\n" .
-                                                  '* Read over the [online docs](%%%%doc.help%%%%) for features you may have missed. ' . "\n" .
+                                                  '* Read over the [online docs](%%%%doc.help%%%%) for features you may have missed. ' . "\n\n" .
                                                   'Thanks for signing up and we hope you enjoy using this service.'),
                                                 $nickname, common_local_url('showstream', array('nickname' => $nickname)));
                common_raw(common_markup_to_html($instr));