Add some additional preloads to notes#feed
This commit is contained in:
parent
abecde92f5
commit
704781ad0b
1 changed files with 3 additions and 1 deletions
|
@ -251,7 +251,9 @@ module Api
|
|||
end
|
||||
|
||||
# Find the comments we want to return
|
||||
@comments = NoteComment.where(:note => notes).order("created_at DESC").limit(result_limit).preload(:note)
|
||||
@comments = NoteComment.where(:note => notes)
|
||||
.order(:created_at => :desc).limit(result_limit)
|
||||
.preload(:author, :note => { :comments => :author })
|
||||
|
||||
# Render the result
|
||||
respond_to do |format|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue