This commit is contained in:
Raphael 2010-11-17 16:07:13 -08:00
parent 1a279de573
commit cb23ed1136

View file

@ -15,15 +15,15 @@ class EMWebfinger
end
def fetch
if @callbacks.empty?
Rails.logger.info("event=EMWebfinger status=abort target=#{account} callbacks=empty")
Rails.logger.info("event=EMWebfinger status=abort target=#{@account} callbacks=empty")
raise 'you need to set a callback before calling fetch'
end
person = Person.by_account_identifier(@account)
if person
Rails.logger.info("event=EMWebfinger status=local target=#{account}")
Rails.logger.info("event=EMWebfinger status=local target=#{@account}")
process_callbacks person
else
Rails.logger.info("event=EMWebfinger status=remote target=#{account}")
Rails.logger.info("event=EMWebfinger status=remote target=#{@account}")
get_xrd
end
end