From 06ff5923c5bcb5357c8b159b0e6170acf54909a6 Mon Sep 17 00:00:00 2001 From: danielvincent <danielgrippi@gmail.com> Date: Sat, 27 Nov 2010 01:35:57 -0500 Subject: [PATCH] fix photos#show and status_messages#show from previous commit --- app/views/photos/show.html.haml | 4 ++-- app/views/status_messages/show.html.haml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/photos/show.html.haml b/app/views/photos/show.html.haml index c94cfb7a93..b423b42147 100644 --- a/app/views/photos/show.html.haml +++ b/app/views/photos/show.html.haml @@ -82,9 +82,9 @@ - if @photo.status_message_id %div{:id => 'status_message_stream', :class => 'stream show'} %li.message{:data=>{:guid=>@photo.status_message_id}} - = render "comments/comments", :post => @photo.status_message + = render "comments/comments", :post_id => @photo.status_message.id, :comments => @photo.status_message.comments - else %div{:id => 'photo_stream', :class => 'stream show'} %li.message{:data=>{:guid=>@photo.id}} - = render "comments/comments", :post => @photo + = render "comments/comments", :post_id => @photo.id, :comments => @photo.comments diff --git a/app/views/status_messages/show.html.haml b/app/views/status_messages/show.html.haml index 5aa7c9104b..0fcaf3b4de 100644 --- a/app/views/status_messages/show.html.haml +++ b/app/views/status_messages/show.html.haml @@ -22,4 +22,4 @@ %h4{:style=>"margin-bottom:5px;"}= t('_comments') %div{:class => 'stream show', :id => 'status_message_stream'} %li.message{:data=>{:guid=>@status_message.id}} - = render "comments/comments", :post => @status_message + = render "comments/comments", :post_id => @status_message.id, :comments => @status_message.comments -- GitLab