summaryrefslogtreecommitdiff
path: root/actions/emailsettings.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/emailsettings.php')
-rw-r--r--actions/emailsettings.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/emailsettings.php b/actions/emailsettings.php
index d8a7bb6c3..cbc4f644f 100644
--- a/actions/emailsettings.php
+++ b/actions/emailsettings.php
@@ -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);