Unverified Commit da04cde0 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub

Fix nil error when stats missing from instance API

parent 63af1ab1
......@@ -12,10 +12,11 @@
.info
%span.title= instance_info['title']
%span.uri= instance_info['uri']
%span.users
= surround '(', ')' do
= number_with_delimiter instance_info['stats']['user_count']
= 'person'.pluralize(instance_info['stats']['user_count'])
- if instance_info['stats'].is_a?(Hash)
%span.users
= surround '(', ')' do
= number_with_delimiter instance_info['stats']['user_count']
= 'person'.pluralize(instance_info['stats']['user_count'])
.grid
- @friends.each do |user|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment