Remove legacy post xml
This was used for the old post fetching Related to diaspora/diaspora_federation#31
This commit is contained in:
parent
a6d7dbf1dd
commit
246d1ebbdf
2 changed files with 0 additions and 7 deletions
|
|
@ -26,7 +26,6 @@ class PostsController < ApplicationController
|
|||
render locals: {post: presenter}
|
||||
end
|
||||
format.mobile { render locals: {post: post} }
|
||||
format.xml { render xml: DiasporaFederation::Salmon::XmlPayload.pack(Diaspora::Federation::Entities.post(post)) }
|
||||
format.json { render json: presenter }
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -76,12 +76,6 @@ describe PostsController, type: :controller do
|
|||
expect(response.body).to match "hello"
|
||||
end
|
||||
|
||||
it "responds with diaspora xml if format is xml" do
|
||||
get :show, id: public.guid, format: :xml
|
||||
expected_xml = DiasporaFederation::Salmon::XmlPayload.pack(Diaspora::Federation::Entities.post(public)).to_xml
|
||||
expect(response.body).to eq(expected_xml)
|
||||
end
|
||||
|
||||
it "includes the correct uniques meta tags" do
|
||||
presenter = PostPresenter.new(public)
|
||||
methods_properties = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue