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