Merge commit 'a863e68d174b176dc350d8e3472c010cd37b7807' into glitch-soc/merge-upstream
Conflicts: - `app/models/trends/statuses.rb`: Conflict because of glitch-soc's setting to allow CWs in trends. Kept glitch-soc's setting but followed upstream's refactor. - `docker-compose.yml`: Conflict because of upstream VS glitch-soc repos. Updated version number as upstream did, but kept glitch-soc repos.
This commit is contained in:
commit
72affd6b45
94 files changed
+477
-458
No files matched your search
@@ -19,15 +19,13 @@ module Admin
|
||||
|
||||
log_action :resend, @user
|
||||
|
||||
flash[:notice] = I18n.t('admin.accounts.resend_confirmation.success')
|
||||
redirect_to admin_accounts_path
|
||||
redirect_to admin_accounts_path, notice: t('admin.accounts.resend_confirmation.success')
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def redirect_confirmed_user
|
||||
flash[:error] = I18n.t('admin.accounts.resend_confirmation.already_confirmed')
|
||||
redirect_to admin_accounts_path
|
||||
redirect_to admin_accounts_path, flash: { error: t('admin.accounts.resend_confirmation.already_confirmed') }
|
||||
end
|
||||
|
||||
def user_confirmed?
|
||||
|
||||
@@ -14,8 +14,7 @@ module Admin
|
||||
@admin_settings = Form::AdminSettings.new(settings_params)
|
||||
|
||||
if @admin_settings.save
|
||||
flash[:notice] = I18n.t('generic.changes_saved_msg')
|
||||
redirect_to after_update_redirect_path
|
||||
redirect_to after_update_redirect_path, notice: t('generic.changes_saved_msg')
|
||||
else
|
||||
render :show
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user