Return 404 for nonexistent photo on mobiles
This commit is contained in:
parent
13fa4af26f
commit
175908e079
1 changed files with 4 additions and 0 deletions
|
|
@ -7,6 +7,10 @@ class PhotosController < ApplicationController
|
|||
|
||||
respond_to :html, :json
|
||||
|
||||
def show
|
||||
@photo = Photo.find(params[:id])
|
||||
end
|
||||
|
||||
def index
|
||||
@post_type = :photos
|
||||
@person = Person.find_by_guid(params[:person_id])
|
||||
|
|
|
|||
Loading…
Reference in a new issue