Fix blank page 404 on mobile
This commit is contained in:
parent
45223fd634
commit
c0c568365a
2 changed files with 1 additions and 2 deletions
|
|
@ -20,8 +20,7 @@ class PostsController < ApplicationController
|
||||||
|
|
||||||
rescue_from Diaspora::NonPublic do |exception|
|
rescue_from Diaspora::NonPublic do |exception|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { render :template=>'errors/not_public', :status=>404 }
|
format.all { render :template=>'errors/not_public', :status=>404 }
|
||||||
format.all { render :nothing=>true, :status=>404 }
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue