From 8b50f808751a089eb2ab36585b52db56951196ae Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Thu, 19 Apr 2012 20:07:14 -0700 Subject: [PATCH] be pedantic in posts show as maybe certain crawlers are being greedy as to what formats they can accept --- app/controllers/posts_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 60d0ec9f3..a841b1b97 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -35,10 +35,10 @@ class PostsController < ApplicationController end respond_to do |format| + format.html{render 'posts/show.html.haml'} format.xml{ render :xml => @post.to_diaspora_xml } format.mobile{render 'posts/show.mobile.haml', :layout => "application"} format.json{ render :json => PostPresenter.new(@post, current_user).to_json } - format.any{render 'posts/show.html.haml'} end else