diff --git a/app/controllers/statuses_controller.rb b/app/controllers/statuses_controller.rb index bb5449b..abd4c80 100644 --- a/app/controllers/statuses_controller.rb +++ b/app/controllers/statuses_controller.rb @@ -76,7 +76,7 @@ end end def timeline @statuses = Status.includes(:user, :icon_attachment) - .order(created_at: :desc) + .order(created_at: :desc).limit(20) end private diff --git a/app/views/statuses/timeline.html.erb b/app/views/statuses/timeline.html.erb index 69091c8..fdbd7c2 100644 --- a/app/views/statuses/timeline.html.erb +++ b/app/views/statuses/timeline.html.erb @@ -1,5 +1,6 @@
<%= link_to "##{status.user.login}", user_path(status.user) %> said...