do not webfinger if we have no clue about the handle

This commit is contained in:
MrZYX 2011-04-09 18:40:40 +02:00
parent fbe91aba3a
commit e7eb9adbf5

View file

@ -52,7 +52,7 @@ module Postzord
if @object.respond_to?(:relayable?)
#if A and B are friends, and A sends B a comment from C, we delegate the validation to the owner of the post being commented on
xml_author = @user.owns?(@object.parent) ? @object.diaspora_handle : @object.parent.author.diaspora_handle
@author = Webfinger.new(@object.diaspora_handle).fetch
@author = Webfinger.new(@object.diaspora_handle).fetch if @object.author
else
xml_author = @object.diaspora_handle
end