diff options
Diffstat (limited to 'app/controllers/tweets_controller.rb')
-rw-r--r-- | app/controllers/tweets_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/tweets_controller.rb b/app/controllers/tweets_controller.rb index 6f91f4e..b35e5fb 100644 --- a/app/controllers/tweets_controller.rb +++ b/app/controllers/tweets_controller.rb @@ -88,7 +88,7 @@ class TweetsController < ApplicationController def search @caption = "Search" - @tweets = Tweet.parse_query(params[:query].to_s || "").reacted.order_by_id.list(params, force_page: true) + @tweets = Tweet.parse_query(params[:q].to_s || "").reacted.not_protected.order_by_id.list(params, force_page: true) @tweets = @tweets.recent(7) unless @tweets.to_sql.include?("`tweets`.`id`") end |