2016-03-01 03:42:08 +09:00
|
|
|
class StreamEntriesController < ApplicationController
|
2016-03-06 07:42:40 +09:00
|
|
|
layout 'public'
|
|
|
|
|
2016-03-01 03:42:08 +09: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-05 04:06:04 +09:00
|
|
|
@account = Account.find_local!(params[:account_username])
|
2016-03-01 03:42:08 +09:00
|
|
|
end
|
|
|
|
|
|
|
|
def set_stream_entry
|
|
|
|
@stream_entry = @account.stream_entries.find(params[:id])
|
|
|
|
end
|
|
|
|
end
|