diff --git a/app/views/photos/show.html.haml b/app/views/photos/show.html.haml index c94cfb7a93f17f6b07a6cb0d293847a6633e5834..b423b42147f11064690d989aa07fe5ec45e54d70 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 5aa7c9104baf24db025d9a7dbb2e3464e912a74a..0fcaf3b4de48ee10d9152953afd86b08db01eef1 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