mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-26 04:23:43 +01:00
18 lines
350 B
Ruby
18 lines
350 B
Ruby
class AtomController < ApplicationController
|
|
before_filter :set_format
|
|
|
|
def user_stream
|
|
@account = Account.find_by!(id: params[:id], domain: nil)
|
|
end
|
|
|
|
def entry
|
|
@entry = StreamEntry.find(params[:id])
|
|
end
|
|
|
|
private
|
|
|
|
def set_format
|
|
request.format = 'xml'
|
|
response.headers['Content-Type'] = 'application/atom+xml'
|
|
end
|
|
end
|