Finish removing encryption from retractions

This commit is contained in:
Raphael 2010-09-10 16:14:37 -07:00
parent c170726f6c
commit 4922ebd84c
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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