Finish removing encryption from retractions
This commit is contained in:
parent
c170726f6c
commit
4922ebd84c
2 changed files with 2 additions and 3 deletions
|
|
@ -27,7 +27,6 @@ class Retraction
|
||||||
def perform receiving_user_id
|
def perform receiving_user_id
|
||||||
Rails.logger.debug "Performing retraction for #{post_id}"
|
Rails.logger.debug "Performing retraction for #{post_id}"
|
||||||
begin
|
begin
|
||||||
return unless signature_valid?
|
|
||||||
Rails.logger.debug("Retracting #{self.type} id: #{self.post_id}")
|
Rails.logger.debug("Retracting #{self.type} id: #{self.post_id}")
|
||||||
target = self.type.constantize.first(: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
|
target.unsocket_from_uid receiving_user_id if target.respond_to? :unsocket_from_uid
|
||||||
|
|
|
||||||
|
|
@ -51,10 +51,10 @@ describe Diaspora::Parser do
|
||||||
person = Factory.create(:person)
|
person = Factory.create(:person)
|
||||||
message = Factory.create(:status_message, :person => person)
|
message = Factory.create(:status_message, :person => person)
|
||||||
retraction = Retraction.for(message)
|
retraction = Retraction.for(message)
|
||||||
request = retraction.to_diaspora_xml
|
xml = retraction.to_diaspora_xml
|
||||||
|
|
||||||
StatusMessage.count.should == 1
|
StatusMessage.count.should == 1
|
||||||
@user.receive request
|
@user.receive xml
|
||||||
StatusMessage.count.should == 0
|
StatusMessage.count.should == 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue