2016-02-29 13:42:08 -05:00
|
|
|
class StreamEntriesController < ApplicationController
|
2016-03-05 17:42:40 -05:00
|
|
|
layout 'public'
|
|
|
|
|
2016-02-29 13:42:08 -05:00
|
|
|
before_action :set_account
|
|
|
|
before_action :set_stream_entry
|
|
|
|
|
|
|
|
def show
|
|
|
|
@type = @stream_entry.activity_type.downcase
|
|
|
|
|
|
|
|
respond_to do |format|
|
|
|
|
format.html
|
|
|
|
format.atom
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def set_account
|
2016-09-04 15:06:04 -04:00
|
|
|
@account = Account.find_local!(params[:account_username])
|
2016-02-29 13:42:08 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def set_stream_entry
|
|
|
|
@stream_entry = @account.stream_entries.find(params[:id])
|
|
|
|
end
|
|
|
|
end
|