mirror of
https://github.com/mastodon/mastodon.git
synced 2026-08-28 14:20:02 -05:00
Fix incorrectly redirecting users to admin path when they submit an appeal (#39619)
This commit is contained in:
@@ -8,7 +8,7 @@ class Disputes::AppealsController < Disputes::BaseController
|
||||
|
||||
@appeal = AppealService.new.call(@strike, appeal_params[:text])
|
||||
|
||||
redirect_to admin_disputes_strike_path(@strike), notice: I18n.t('disputes.strikes.appealed_msg')
|
||||
redirect_to disputes_strike_path(@strike), notice: I18n.t('disputes.strikes.appealed_msg')
|
||||
rescue ActiveRecord::RecordInvalid => e
|
||||
@appeal = e.record
|
||||
render 'disputes/strikes/show'
|
||||
|
||||
Reference in New Issue
Block a user