This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/app/controllers/atom_controller.rb

19 lines
350 B
Ruby
Raw Normal View History

2016-02-22 07:00:20 -08:00
class AtomController < ApplicationController
before_filter :set_format
def user_stream
@account = Account.find_by!(id: params[:id], domain: nil)
end
2016-02-22 10:11:07 -08:00
def entry
@entry = StreamEntry.find(params[:id])
end
2016-02-22 07:00:20 -08:00
private
def set_format
request.format = 'xml'
response.headers['Content-Type'] = 'application/atom+xml'
end
end