New option to notificaion preferences for emails from gab.com for announcements and other information

This commit is contained in:
2458773093 2019-08-01 01:16:22 +03:00
parent 4d458d5778
commit c832fb6cbc
5 changed files with 5 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class Settings::NotificationsController < Settings::BaseController
def user_settings_params
params.require(:user).permit(
notification_emails: %i(follow follow_request reblog favourite mention digest report pending_account),
notification_emails: %i(follow follow_request reblog favourite mention digest report pending_account emails_from_gabcom),
interactions: %i(must_be_follower must_be_following must_be_following_dm)
)
end

View File

@ -51,7 +51,7 @@ class Settings::PreferencesController < Settings::BaseController
:setting_show_application,
:setting_advanced_layout,
:setting_group_in_home_feed,
notification_emails: %i(follow follow_request reblog favourite mention digest report pending_account),
notification_emails: %i(follow follow_request reblog favourite mention digest report pending_account emails_from_gabcom),
interactions: %i(must_be_follower must_be_following)
)
end

View File

@ -11,6 +11,7 @@
= ff.input :reblog, as: :boolean, wrapper: :with_label
= ff.input :favourite, as: :boolean, wrapper: :with_label
= ff.input :mention, as: :boolean, wrapper: :with_label
= ff.input :emails_from_gabcom, as: :boolean, wrapper: :with_label
- if current_user.staff?
= ff.input :report, as: :boolean, wrapper: :with_label

View File

@ -132,6 +132,7 @@ en:
pending_account: Send e-mail when a new account needs review
reblog: Send e-mail when someone reposts your status
report: Send e-mail when a new report is submitted
emails_from_gabcom: Receive e-mail from Gab.com with announcements and other information
'no': 'No'
required:
mark: "*"

View File

@ -41,6 +41,7 @@ defaults: &defaults
digest: true
report: true
pending_account: true
emails_from_gabcom: true
interactions:
must_be_follower: false
must_be_following: false