]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
save emailpost flag
authorEvan Prodromou <evan@prodromou.name>
Sun, 20 Jul 2008 05:34:31 +0000 (01:34 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sun, 20 Jul 2008 05:34:31 +0000 (01:34 -0400)
darcs-hash:20080720053431-84dde-2a46f89bcb18ecbb2b151f5d86a98fb016c851dd.gz

actions/emailsettings.php

index d8a7bb6c3372e473e4362dbfd394cf50fd05a355..cbc4f644f36d6de5723cbdb6ef137f3b972ca2d3 100644 (file)
@@ -131,7 +131,8 @@ class EmailsettingsAction extends SettingsAction {
        function save_preferences() {
 
                $emailnotifysub = $this->boolean('emailnotifysub');
-
+               $emailpost = $this->boolean('emailpost');
+               
                $user = common_current_user();
 
                assert(!is_null($user)); # should already be checked
@@ -141,6 +142,7 @@ class EmailsettingsAction extends SettingsAction {
                $original = clone($user);
 
                $user->emailnotifysub = $emailnotifysub;
+               $user->emailpost = $emailpost;
 
                $result = $user->update($original);