app/views/federails/server/nodeinfo/show.nodeinfo.jbuilder in federails-0.2.0 vs app/views/federails/server/nodeinfo/show.nodeinfo.jbuilder in federails-0.3.0

- old
+ new

@@ -7,13 +7,14 @@ ] # FIXME: When server is in good shape: update outbounds # http://nodeinfo.diaspora.software/ns/schema/2.0 for possible values json.services inbound: [], outbound: [] -# FIXME: Don't hardcode this -json.openRegistrations true -json.usage users: { - total: @total, - activeMonth: @active_month, - activeHalfyear: @active_halfyear, -} +json.openRegistrations Federails::Configuration.open_registrations +if @has_user_counts + json.usage users: { + total: @total, + activeMonth: @active_month, + activeHalfyear: @active_halfyear, + } +end json.metadata({})