aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/tweet.rb
diff options
context:
space:
mode:
authorRhenium <rhenium@rhe.jp>2013-11-17 05:30:23 +0900
committerRhenium <rhenium@rhe.jp>2013-11-17 05:30:23 +0900
commit546bd0726afa3a7a86a6559e51fadcda03aeff22 (patch)
treeef393fc09e2725cd7f665a26664c643e6c8b667b /app/models/tweet.rb
parent298d783c9bcd44b4bc96c37ce46fb1ad57c97d59 (diff)
downloadaclog-546bd0726afa3a7a86a6559e51fadcda03aeff22.tar.gz
update search query
Diffstat (limited to 'app/models/tweet.rb')
-rw-r--r--app/models/tweet.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/tweet.rb b/app/models/tweet.rb
index c573176..0fb8239 100644
--- a/app/models/tweet.rb
+++ b/app/models/tweet.rb
@@ -145,7 +145,7 @@ class Tweet < ActiveRecord::Base
when /^-?rts?:(\d+)$/
tweets[:retweets_count].__send__(positive ? :gteq : :lt, $1.to_i)
when /^-?(?:sum|reactions?):(\d+)$/
- (tweets[:favorites_count] + tweets[:retweets_count]).__send__(positive ? :gteq : :lt, $1.to_i)
+ (tweets[:reactions_count]).__send__(positive ? :gteq : :lt, $1.to_i)
when /^(?:source|via):(.+)$/
source_text = "<url:%:#{escape_text.call($1).gsub(":", "%3A")}>"
tweets[:source].__send__(positive ? :matches : :does_not_match, source_text)