diff options
Diffstat (limited to 'actions/register.php')
-rw-r--r-- | actions/register.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/actions/register.php b/actions/register.php index 0832b0847..6ac283059 100644 --- a/actions/register.php +++ b/actions/register.php @@ -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(); |