diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-23 11:56:04 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-23 11:56:04 +0200 |
commit | abb8f5837ee1fa72d13d255cf29f4ade35f53ece (patch) | |
tree | fe377076c65b28cae9e12b74b2bc891dc79a2f08 /app/services | |
parent | a9e40a3d80435431f689b8d19005dd77a8f50224 (diff) |
Fix public channel
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/block_domain_service.rb | 2 | ||||
-rw-r--r-- | app/services/fetch_remote_account_service.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/services/block_domain_service.rb b/app/services/block_domain_service.rb index ac658a050..93987af29 100644 --- a/app/services/block_domain_service.rb +++ b/app/services/block_domain_service.rb @@ -1,6 +1,6 @@ class BlockDomainService < BaseService def call(domain) - block = DomainBlock.find_or_create_by!(domain: domain) + DomainBlock.find_or_create_by!(domain: domain) Account.where(domain: domain).find_each do |account| if account.subscribed? diff --git a/app/services/fetch_remote_account_service.rb b/app/services/fetch_remote_account_service.rb index 7977f5cba..7a65236b6 100644 --- a/app/services/fetch_remote_account_service.rb +++ b/app/services/fetch_remote_account_service.rb @@ -19,7 +19,7 @@ class FetchRemoteAccountService < BaseService Rails.logger.debug "Going to webfinger #{username}@#{domain}" return FollowRemoteAccountService.new.call("#{username}@#{domain}") - rescue TypeError => e + rescue TypeError Rails.logger.debug "Unparseable URL given: #{url}" nil rescue Nokogiri::XML::XPath::SyntaxError |