mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-22 04:25:06 +01:00
15 lines
288 B
Ruby
15 lines
288 B
Ruby
|
class AtomController < ApplicationController
|
||
|
before_filter :set_format
|
||
|
|
||
|
def user_stream
|
||
|
@account = Account.find_by!(id: params[:id], domain: nil)
|
||
|
end
|
||
|
|
||
|
private
|
||
|
|
||
|
def set_format
|
||
|
request.format = 'xml'
|
||
|
response.headers['Content-Type'] = 'application/atom+xml'
|
||
|
end
|
||
|
end
|