diff options
Diffstat (limited to 'app/services/unmute_service.rb')
-rw-r--r-- | app/services/unmute_service.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/services/unmute_service.rb b/app/services/unmute_service.rb new file mode 100644 index 000000000..ed268b7c5 --- /dev/null +++ b/app/services/unmute_service.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class UnmuteService < BaseService + def call(account, target_account) + return unless account.muting?(target_account) + + account.unmute!(target_account) + end +end |