Option to supress replies button below a post, when its reply is directly following.

This commit is contained in:
Robin Ward
2013-02-12 14:35:21 -05:00
parent 04c8b20840
commit d7f3241285
5 changed files with 39 additions and 6 deletions

View File

@ -29,6 +29,7 @@ class SiteSetting < ActiveRecord::Base
client_setting(:min_topic_title_length, 5)
client_setting(:max_topic_title_length, 255)
client_setting(:flush_timings_secs, 5)
client_setting(:supress_reply_directly_below, true)
# settings only available server side
setting(:auto_track_topics_after, 60000)
@ -136,6 +137,8 @@ class SiteSetting < ActiveRecord::Base
# Ways to catch griefers and other nasties
setting(:email_blacklist_regexp, '')
def self.call_mothership?
self.enforce_global_nicknames? and self.discourse_org_access_key.present?
end