2 failures left in merge
This commit is contained in:
parent
738e8c65c8
commit
f87ddffc64
2 changed files with 4 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ module Postzord
|
|||
|
||||
def perform
|
||||
if @sender && self.salmon.verified_for_key?(@sender.public_key)
|
||||
parse_and_receive(salmon.parsed_data)
|
||||
parse_and_receive(salmon.parsed_data)
|
||||
else
|
||||
Rails.logger.info("event=receive status=abort recipient=#{@user.diaspora_handle} sender=#{@salmon.author_email} reason='not_verified for key'")
|
||||
nil
|
||||
|
|
@ -70,7 +70,7 @@ module Postzord
|
|||
@object.sender_handle = @sender.diaspora_handle
|
||||
end
|
||||
|
||||
|
||||
|
||||
if (@author.diaspora_handle != xml_author)
|
||||
Rails.logger.info("event=receive status=abort reason='author in xml does not match retrieved person' payload_type=#{@object.class} recipient=#{@user_person.diaspora_handle} sender=#{@sender.diaspora_handle}")
|
||||
return false
|
||||
|
|
|
|||
|
|
@ -130,10 +130,10 @@ describe Photo do
|
|||
thumb_url = @photo.url :thumb_medium
|
||||
|
||||
xml = @photo.to_diaspora_xml
|
||||
id = @photo.id
|
||||
|
||||
@photo.destroy
|
||||
@photo.receive(user2, @user.person)
|
||||
zord = Postzord::Receiver.new(user2, :person => @photo.person)
|
||||
zord.parse_and_receive(xml)
|
||||
|
||||
new_photo = Photo.where(:guid => @photo.guid).first
|
||||
new_photo.url.nil?.should be false
|
||||
|
|
|
|||
Loading…
Reference in a new issue