If one user has a bad rsa key, don't abort all sends.
This commit is contained in:
parent
d75a682199
commit
00589c10c6
1 changed files with 8 additions and 1 deletions
|
|
@ -25,7 +25,14 @@ module Job
|
||||||
people.each do |person|
|
people.each do |person|
|
||||||
|
|
||||||
url = person.receive_url
|
url = person.receive_url
|
||||||
|
begin
|
||||||
xml = salmon.xml_for(person)
|
xml = salmon.xml_for(person)
|
||||||
|
rescue OpenSSL::PKey::RSAError => e
|
||||||
|
Rails.logger.info(:event => :invalid_rsa_key, :identifier => person.diaspora_handle)
|
||||||
|
next
|
||||||
|
end
|
||||||
|
|
||||||
|
Rails.logger.info("event=http_multi_send sender_id=#{user_id} recipient_id=#{person.id} url=#{url} xml='#{xml}'")
|
||||||
|
|
||||||
request = Request.new(url, OPTS.merge(:params => {:xml => CGI::escape(xml)}))
|
request = Request.new(url, OPTS.merge(:params => {:xml => CGI::escape(xml)}))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue