remove the limit 3 for @photos in photo controller
This commit is contained in:
parent
44d76fc6da
commit
8df8855ac0
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ class PhotosController < ApplicationController
|
|||
def index
|
||||
@post_type = :photos
|
||||
@person = Person.find_by_guid(params[:person_id])
|
||||
@photos = Photo.where(author_id: @person.id).limit(3).order('created_at desc')
|
||||
@photos = Photo.where(author_id: @person.id).order('created_at desc')
|
||||
if @person
|
||||
@contact = current_user.contact_for(@person)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue