Removed stray puts
This commit is contained in:
parent
a219801c2d
commit
25940cf567
2 changed files with 1 additions and 9 deletions
|
|
@ -49,17 +49,10 @@ class Post
|
|||
return false unless owner_signature && person.key_fingerprint
|
||||
validity = nil
|
||||
GPGME::verify(owner_signature, to_xml.to_s, {:armor => true, :always_trust => true}){ |signature|
|
||||
puts signature
|
||||
puts signature.inspect
|
||||
validity = signature.status == GPGME::GPG_ERR_NO_ERROR &&
|
||||
#signature.to_s.include?("Good signature from ") &&
|
||||
signature.fpr == person.key_fingerprint
|
||||
#validity = validity && person.key_fingerprint == signature.fpr
|
||||
}
|
||||
#puts message
|
||||
puts to_xml.to_s
|
||||
return validity# && message == to_xml.to_s
|
||||
#validity = validity && (signed_text == to_xml.to_s)
|
||||
return validity
|
||||
end
|
||||
protected
|
||||
def sign_if_mine
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ class User < Person
|
|||
def send_friend_request_to(friend_url)
|
||||
unless Person.where(:url => friend_url).first
|
||||
p = Request.instantiate(:to => friend_url, :from => self)
|
||||
puts p.inspect
|
||||
if p.save
|
||||
p.push_to_url friend_url
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue