diff options
Diffstat (limited to 'app/controllers/profile_controller.rb')
-rw-r--r-- | app/controllers/profile_controller.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/controllers/profile_controller.rb b/app/controllers/profile_controller.rb index 42698f7c7..30bd1a6b6 100644 --- a/app/controllers/profile_controller.rb +++ b/app/controllers/profile_controller.rb @@ -1,7 +1,17 @@ class ProfileController < ApplicationController + before_action :set_account + def show end def entry + @entry = @account.stream_entries.find(params[:id]) + @type = @entry.activity_type.downcase + end + + private + + def set_account + @account = Account.find_by!(username: params[:name], domain: nil) end end |