]>
cat aescling's git repositories - mastodon.git/blob - app/presenters/instance_presenter.rb
1 # frozen_string_literal: true
3 class InstancePresenter
5 :closed_registrations_message,
9 :site_extended_description,
14 Account
.find_local(Setting
.site_contact_username
)
18 Rails
.cache
.fetch('user_count') { User
.count
}
22 Rails
.cache
.fetch('local_status_count') { Status
.local
.count
}
26 Rails
.cache
.fetch('distinct_domain_count') { Account
.distinct
.count(:domain) }
This page took 0.077318 seconds and 5 git commands to generate.