mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
Finish removing encryption from retractions
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user