Fixed wrong call of translation method in ban action
This commit is contained in:
parent
918c514f12
commit
6a083230dd
|
@ -59,7 +59,7 @@ class Ajax::ModerationController < AjaxController
|
||||||
raise Errors::InvalidBanDuration unless %w[hours days weeks months].include? duration_unit
|
raise Errors::InvalidBanDuration unless %w[hours days weeks months].include? duration_unit
|
||||||
|
|
||||||
expiry = DateTime.now + duration.public_send(duration_unit)
|
expiry = DateTime.now + duration.public_send(duration_unit)
|
||||||
@response[:message] = I18n.t(".success.temporary", date: expiry.to_s)
|
@response[:message] = t(".success.temporary", date: expiry.to_s)
|
||||||
end
|
end
|
||||||
|
|
||||||
UseCase::User::Ban.call(
|
UseCase::User::Ban.call(
|
||||||
|
|
Loading…
Reference in New Issue