|
|
@ -21,7 +21,9 @@ class FetchRemoteAccountService < BaseService |
|
|
|
return FollowRemoteAccountService.new.call("#{username}@#{domain}") |
|
|
|
return FollowRemoteAccountService.new.call("#{username}@#{domain}") |
|
|
|
rescue TypeError => e |
|
|
|
rescue TypeError => e |
|
|
|
Rails.logger.debug "Unparseable URL given: #{url}" |
|
|
|
Rails.logger.debug "Unparseable URL given: #{url}" |
|
|
|
|
|
|
|
nil |
|
|
|
rescue Nokogiri::XML::XPath::SyntaxError |
|
|
|
rescue Nokogiri::XML::XPath::SyntaxError |
|
|
|
Rails.logger.debug "Invalid XML or missing namespace" |
|
|
|
Rails.logger.debug "Invalid XML or missing namespace" |
|
|
|
|
|
|
|
nil |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|