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 @@ ...@@ -12,10 +12,11 @@
.info .info
%span.title= instance_info['title'] %span.title= instance_info['title']
%span.uri= instance_info['uri'] %span.uri= instance_info['uri']
%span.users - if instance_info['stats'].is_a?(Hash)
= surround '(', ')' do %span.users
= number_with_delimiter instance_info['stats']['user_count'] = surround '(', ')' do
= 'person'.pluralize(instance_info['stats']['user_count']) = number_with_delimiter instance_info['stats']['user_count']
= 'person'.pluralize(instance_info['stats']['user_count'])
.grid .grid
- @friends.each do |user| - @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