From 07d2de66461ab79cfd90a38c2843cde4e6390046 Mon Sep 17 00:00:00 2001
From: maxwell <maxwell@joindiaspora.com>
Date: Sun, 19 Sep 2010 20:36:39 -0700
Subject: [PATCH] removed an annoying log of encrypted salmon.

---
 app/models/person.rb | 1 +
 app/models/user.rb   | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/person.rb b/app/models/person.rb
index b1e7e37458..079275997c 100644
--- a/app/models/person.rb
+++ b/app/models/person.rb
@@ -76,6 +76,7 @@ class Person
   end
 
   def self.by_webfinger( identifier, opts = {})
+    #need to check if this is a valid email structure, maybe should do in JS
     local_person = Person.first(:diaspora_handle => identifier.gsub('acct:', ''))
 
      if local_person
diff --git a/app/models/user.rb b/app/models/user.rb
index 4ec528e703..f0481341ae 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -220,7 +220,6 @@ class User
   ###### Receiving #######
   def receive_salmon ciphertext
     cleartext = decrypt( ciphertext)
-    Rails.logger.info("Received a salmon: #{cleartext}")
     salmon = Salmon::SalmonSlap.parse cleartext
     if salmon.verified_for_key?(salmon.author.public_key)
       Rails.logger.info("data in salmon: #{salmon.data}")
-- 
GitLab