fixed comment socketing bug, post ordering on own profile page.
This commit is contained in:
parent
93b82a377f
commit
5b0da52e0a
2 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ module SocketsHelper
|
|||
v = render_to_string(:partial => 'people/person', :locals => person_hash)
|
||||
|
||||
elsif object.is_a? Comment
|
||||
v = render_to_string(:partial => 'comments/comment', :locals => {:comment => object, :person => object.author, :current_user => user})
|
||||
v = render_to_string(:partial => 'comments/comment', :locals => {:post => object.post, :comment => object, :person => object.author, :current_user => user})
|
||||
|
||||
elsif object.is_a? Like
|
||||
v = render_to_string(:partial => 'likes/likes', :locals => {:likes => object.post.likes, :dislikes => object.post.dislikes})
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ module Diaspora
|
|||
end
|
||||
|
||||
def posts_from(person)
|
||||
return self.person.posts.where(:pending => false) if person == self.person
|
||||
return self.person.posts.where(:pending => false).order("created_at DESC") if person == self.person
|
||||
con = Contact.arel_table
|
||||
p = Post.arel_table
|
||||
post_ids = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue