do not webfinger if we have no clue about the handle
This commit is contained in:
parent
fbe91aba3a
commit
e7eb9adbf5
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue