Create appConfig option for following diasporahq

This commit is contained in:
Raphael Sofaer 2011-08-11 12:01:14 -07:00
parent 7021cd79c8
commit 0b00616b8c
2 changed files with 10 additions and 2 deletions

View file

@ -349,8 +349,10 @@ class User < ActiveRecord::Base
self.aspects.create(:name => I18n.t('aspects.seed.work'))
aq = self.aspects.create(:name => I18n.t('aspects.seed.acquaintances'))
default_account = Webfinger.new('diasporahq@joindiaspora.com').fetch
self.share_with(default_account, aq) if default_account
unless AppConfig[:no_follow_diasporahq]
default_account = Webfinger.new('diasporahq@joindiaspora.com').fetch
self.share_with(default_account, aq) if default_account
end
aq
end

View file

@ -17,6 +17,12 @@ defaults: &defaults
# Set this to true if you want users to invite as many people as they want
open_invitations: true
# Set this to true if you don't want your users to follow the diasporahq@joindiaspora.com
# account on account creation. The diasporahq account helps users start with some
# activity in their stream and get news about Diaspora, but if you don't want your server
# to contact joindiaspora.com, set this to true:
no_follow_diasporahq: false
#
# Logging setup
#