mirror of
https://github.com/mastodon/mastodon.git
synced 2025-02-04 16:31:56 +01:00
Redirect back after site upload deletion (#30141)
This commit is contained in:
parent
116f01ec7d
commit
05126d106f
@ -9,7 +9,7 @@ module Admin
|
|||||||
|
|
||||||
@site_upload.destroy!
|
@site_upload.destroy!
|
||||||
|
|
||||||
redirect_to admin_settings_path, notice: I18n.t('admin.site_uploads.destroyed_msg')
|
redirect_back fallback_location: admin_settings_path, notice: I18n.t('admin.site_uploads.destroyed_msg')
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
Loading…
x
Reference in New Issue
Block a user