New option to notificaion preferences for emails from gab.com for announcements and other information
This commit is contained in:
parent
4d458d5778
commit
c832fb6cbc
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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: "*"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue