Fix 500 on photo destroy
This commit is contained in:
parent
3831c13a4a
commit
38a8962945
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ class PhotosController < ApplicationController
|
|||
format.html do
|
||||
flash[:notice] = I18n.t 'photos.destroy.notice'
|
||||
if photo.status_message_guid
|
||||
respond_with photo, :location => photo.status_message
|
||||
respond_with photo, :location => post_path(photo.status_message)
|
||||
else
|
||||
respond_with photo, :location => person_photos_path(current_user.person)
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue