From dd02fc0ec4ba19a466228187b932412b7846d28d Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 18 Oct 2016 01:22:28 +0200 Subject: [PATCH] More debugging --- app/assets/javascripts/components/selectors/index.jsx | 2 +- config/environments/production.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/components/selectors/index.jsx b/app/assets/javascripts/components/selectors/index.jsx index 91f900f904..3469722a44 100644 --- a/app/assets/javascripts/components/selectors/index.jsx +++ b/app/assets/javascripts/components/selectors/index.jsx @@ -38,7 +38,7 @@ const assembleStatus = (id, statuses, accounts) => { if (status.get('reblog', null) !== null) { reblog = statuses.get(status.get('reblog'), null); - if (reblog !== null) { + if (Immutable.Map.isMap(reblog)) { reblog = reblog.set('account', accounts.get(reblog.get('account'))); } else { return null; diff --git a/config/environments/production.rb b/config/environments/production.rb index 1a2b660a77..8ac857a194 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -19,7 +19,7 @@ Rails.application.configure do config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? # Compress JavaScripts and CSS. - config.assets.js_compressor = Uglifier.new(mangle: false, output: { comments: :all }) + config.assets.js_compressor = Uglifier.new(mangle: false) # config.assets.css_compressor = :sass # Do not fallback to assets pipeline if a precompiled asset is missed.