removed an annoying log of encrypted salmon.
This commit is contained in:
parent
27c00bae90
commit
07d2de6646
2 changed files with 1 additions and 1 deletions
|
|
@ -76,6 +76,7 @@ class Person
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.by_webfinger( identifier, opts = {})
|
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:', ''))
|
local_person = Person.first(:diaspora_handle => identifier.gsub('acct:', ''))
|
||||||
|
|
||||||
if local_person
|
if local_person
|
||||||
|
|
|
||||||
|
|
@ -220,7 +220,6 @@ class User
|
||||||
###### Receiving #######
|
###### Receiving #######
|
||||||
def receive_salmon ciphertext
|
def receive_salmon ciphertext
|
||||||
cleartext = decrypt( ciphertext)
|
cleartext = decrypt( ciphertext)
|
||||||
Rails.logger.info("Received a salmon: #{cleartext}")
|
|
||||||
salmon = Salmon::SalmonSlap.parse cleartext
|
salmon = Salmon::SalmonSlap.parse cleartext
|
||||||
if salmon.verified_for_key?(salmon.author.public_key)
|
if salmon.verified_for_key?(salmon.author.public_key)
|
||||||
Rails.logger.info("data in salmon: #{salmon.data}")
|
Rails.logger.info("data in salmon: #{salmon.data}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue