include authors and profiles on tags show page
This commit is contained in:
parent
1f448e8555
commit
b8d70393f4
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ class TagsController < ApplicationController
|
|||
|
||||
max_time = params[:max_time] ? Time.at(params[:max_time].to_i) : Time.now
|
||||
@posts = @posts.where(StatusMessage.arel_table[:created_at].lt(max_time))
|
||||
@posts = @posts.includes(:comments, :photos).order('posts.created_at DESC').limit(15)
|
||||
@posts = @posts.includes({:comments => {:author => :profile}}, :photos).order('posts.created_at DESC').limit(15)
|
||||
|
||||
@posts = PostsFake.new(@posts)
|
||||
@commenting_disabled = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue