From 4922ebd84ca79c48fb01764e468870c8064c307c Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 10 Sep 2010 16:14:37 -0700 Subject: [PATCH] Finish removing encryption from retractions --- app/models/retraction.rb | 1 - spec/lib/diaspora_parser_spec.rb | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/models/retraction.rb b/app/models/retraction.rb index 67ca5bb92..6fad270c2 100644 --- a/app/models/retraction.rb +++ b/app/models/retraction.rb @@ -27,7 +27,6 @@ class Retraction def perform receiving_user_id Rails.logger.debug "Performing retraction for #{post_id}" begin - return unless signature_valid? Rails.logger.debug("Retracting #{self.type} id: #{self.post_id}") target = self.type.constantize.first(:id => self.post_id) target.unsocket_from_uid receiving_user_id if target.respond_to? :unsocket_from_uid diff --git a/spec/lib/diaspora_parser_spec.rb b/spec/lib/diaspora_parser_spec.rb index b0b8f6a97..3d4dc3727 100644 --- a/spec/lib/diaspora_parser_spec.rb +++ b/spec/lib/diaspora_parser_spec.rb @@ -51,10 +51,10 @@ describe Diaspora::Parser do person = Factory.create(:person) message = Factory.create(:status_message, :person => person) retraction = Retraction.for(message) - request = retraction.to_diaspora_xml + xml = retraction.to_diaspora_xml StatusMessage.count.should == 1 - @user.receive request + @user.receive xml StatusMessage.count.should == 0 end