if account.nil?
account = follow_remote_account_service.("#{username}@#{domain}", false)
- return nil if account.nil?
end
Status.new(account: account, uri: target_id(xml), text: target_content(xml), url: target_url(xml))
+ rescue Goldfinger::Error, HTTP::Error
+ nil
end
def published(xml)
if account.nil?
account = follow_remote_account_service.("#{username}@#{domain}", false)
- return if account.nil?
end
if salmon.verify(envelope, account.keypair)
delete_post!(xml, account)
end
end
+ rescue Goldfinger::Error, HTTP::Error
+ nil
end
private
mentioned_account = Account.find_remote(username, domain)
if mentioned_account.nil? && !domain.nil?
- mentioned_account = follow_remote_account_service.("#{match.first}")
+ begin
+ mentioned_account = follow_remote_account_service.("#{match.first}")
+ rescue Goldfinger::Error, HTTP::Error
+ end
end
next if mentioned_account.nil?