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 end
def fetch def fetch
if @callbacks.empty? 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' raise 'you need to set a callback before calling fetch'
end end
person = Person.by_account_identifier(@account) person = Person.by_account_identifier(@account)
if person if person
Rails.logger.info("event=EMWebfinger status=local target=#{account}") Rails.logger.info("event=EMWebfinger status=local target=#{@account}")
process_callbacks person process_callbacks person
else else
Rails.logger.info("event=EMWebfinger status=remote target=#{account}") Rails.logger.info("event=EMWebfinger status=remote target=#{@account}")
get_xrd get_xrd
end end
end end