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.

25 lines
469 B

  1. class StreamEntriesController < ApplicationController
  2. layout 'public'
  3. before_action :set_account
  4. before_action :set_stream_entry
  5. def show
  6. @type = @stream_entry.activity_type.downcase
  7. respond_to do |format|
  8. format.html
  9. format.atom
  10. end
  11. end
  12. private
  13. def set_account
  14. @account = Account.find_local!(params[:account_username])
  15. end
  16. def set_stream_entry
  17. @stream_entry = @account.stream_entries.find(params[:id])
  18. end
  19. end