From c0c568365a206d1c7d5648dd991593412a32cfa0 Mon Sep 17 00:00:00 2001 From: movilla Date: Tue, 4 Sep 2012 00:09:45 +0200 Subject: [PATCH] Fix blank page 404 on mobile --- app/controllers/posts_controller.rb | 3 +-- app/views/errors/{not_public.html.haml => not_public.haml} | 0 2 files changed, 1 insertion(+), 2 deletions(-) rename app/views/errors/{not_public.html.haml => not_public.haml} (100%) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index acd65d41c..2d35fac8c 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -20,8 +20,7 @@ class PostsController < ApplicationController rescue_from Diaspora::NonPublic do |exception| respond_to do |format| - format.html { render :template=>'errors/not_public', :status=>404 } - format.all { render :nothing=>true, :status=>404 } + format.all { render :template=>'errors/not_public', :status=>404 } end end diff --git a/app/views/errors/not_public.html.haml b/app/views/errors/not_public.haml similarity index 100% rename from app/views/errors/not_public.html.haml rename to app/views/errors/not_public.haml