闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
350 B

  1. class AtomController < ApplicationController
  2. before_filter :set_format
  3. def user_stream
  4. @account = Account.find_by!(id: params[:id], domain: nil)
  5. end
  6. def entry
  7. @entry = StreamEntry.find(params[:id])
  8. end
  9. private
  10. def set_format
  11. request.format = 'xml'
  12. response.headers['Content-Type'] = 'application/atom+xml'
  13. end
  14. end