Skip to content
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.

Commit

Permalink
The flag for no ID comes in as a string, not as a number.
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi committed Jan 20, 2011
1 parent ca42ede commit 0cd7d36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/main_controller.rb
Expand Up @@ -20,7 +20,7 @@ def publisher
end end


def latest def latest
if params[:since_id] == 0 if params[:since_id] == "0"
@activities = Activity.any_in(:publisher_ids => params[:following_ids].split(',')). @activities = Activity.any_in(:publisher_ids => params[:following_ids].split(',')).
desc(:_id). desc(:_id).
limit(20) limit(20)
Expand Down

0 comments on commit 0cd7d36

Please sign in to comment.