fix temp pagination fix in raw_visible_posts.
This commit is contained in:
parent
5bd47f20c1
commit
93b82a377f
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ module Diaspora
|
|||
opts[:limit] ||= 20
|
||||
opts[:order] ||= 'updated_at DESC'
|
||||
opts[:order] = '`posts`.' + opts[:order]
|
||||
opts[:limit] = opts[:limit] * opts[:page] if opts[:page]
|
||||
opts[:limit] = opts[:limit].to_i * opts[:page].to_i if opts[:page]
|
||||
|
||||
posts_from_others = Post.joins(:contacts).where(:contacts => {:user_id => self.id})
|
||||
posts_from_self = self.person.posts.joins(:aspect_visibilities => :aspect).where(:aspects => {:user_id => self.id})
|
||||
|
|
|
|||
Loading…
Reference in a new issue