for tests, only try to connect with an actual person

This commit is contained in:
Maxwell Salzberg 2011-07-29 21:52:46 -07:00
parent 5e5671ecf8
commit bbf8f2a15b

View file

@ -350,7 +350,7 @@ class User < ActiveRecord::Base
aq = self.aspects.create(:name => I18n.t('aspects.seed.acquaintances'))
default_account = Webfinger.new('diasporahq@joindiaspora.com').fetch
self.share_with(default_account, aq)
self.share_with(default_account, aq) if default_account
aq
end