API for blocking and unblocking
This commit is contained in:
parent
2c9e672ee2
commit
7b9a4af311
10 changed files with 106 additions and 8 deletions
5
app/services/unblock_service.rb
Normal file
5
app/services/unblock_service.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class UnblockService < BaseService
|
||||
def call(account, target_account)
|
||||
account.unblock!(target_account) if account.blocking?(target_account)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue