json.version '2.0' # FIXME: Use configuration values when created json.software name: Federails::Configuration.app_name, version: Federails::Configuration.app_version json.protocols [ 'activitypub', ] # FIXME: When server is in good shape: update outbounds # http://nodeinfo.diaspora.software/ns/schema/2.0 for possible values json.services inbound: [], outbound: [] json.openRegistrations Federails::Configuration.open_registrations if @has_user_counts json.usage users: { total: @total, activeMonth: @active_month, activeHalfyear: @active_halfyear, } end json.metadata({})