be pedantic in posts show as maybe certain crawlers are being greedy as to what formats they can accept

This commit is contained in:
Maxwell Salzberg 2012-04-19 20:07:14 -07:00
parent 6d7f6129fe
commit 8b50f80875

View file

@ -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