Skip to content

Commit

Permalink
Fix the crack I was smoking in the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslee authored and Nakort committed Oct 12, 2012
1 parent 0473b2c commit ecdbb1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,10 @@ def timeline(params = nil)
following_plus_me = following.map(&:author_id)
following_plus_me << self.author.id
crit = Update.where(:author_id => following_plus_me)
if !params[:since_id].empty?
if !params[:since_id].blank?
crit = crit.where(:id.gt => BSON::ObjectId(params[:since_id]))
end
if !params[:max_id].empty?
if !params[:max_id].blank?
crit = crit.where(:id.lte => BSON::ObjectId(params[:max_id]))
end
crit = crit.order([:created_at, :descending])
Expand Down

0 comments on commit ecdbb1e

Please sign in to comment.