diff options
Diffstat (limited to 'app/services/unsubscribe_service.rb')
-rw-r--r-- | app/services/unsubscribe_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/unsubscribe_service.rb b/app/services/unsubscribe_service.rb index 1a951d1b4..6db8dbdc4 100644 --- a/app/services/unsubscribe_service.rb +++ b/app/services/unsubscribe_service.rb @@ -5,8 +5,8 @@ class UnsubscribeService < BaseService subscription = account.subscription(api_subscription_url(account.id)) response = subscription.unsubscribe - unless response.successful? - Rails.logger.debug "PuSH unsubscribe for #{account.acct} failed: #{response.message}" + unless response.status.success? + Rails.logger.debug "PuSH unsubscribe for #{account.acct} failed: #{response.status}" end account.secret = '' |