be pedantic in posts show as maybe certain crawlers are being greedy as to what formats they can accept
This commit is contained in:
parent
6d7f6129fe
commit
8b50f80875
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue