Permalink
Browse files

Only send status updates for the correct hash tag.

  • Loading branch information...
1 parent 49f83cd commit 81f3e08ae38b6e3d70b4bfb20df466aecdca3b22 @LogicWolfe LogicWolfe committed Aug 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/statuses_controller.rb
@@ -2,7 +2,7 @@ class StatusesController < ApplicationController
# GET /statuses
# GET /statuses.xml
def index
- @statuses = Status.limit(20).order("created_at DESC").where("created_at > ?", Time.at(params[:most_recent].to_i/1000))
+ @statuses = Status.limit(20).order("created_at DESC").where(:hash_tag_id => params[:hash_tag_id]).where("created_at > ?", Time.at(params[:most_recent].to_i/1000))
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @statuses }

0 comments on commit 81f3e08

Please sign in to comment.