diff app/controllers/tweets_controller.rb @ 66:1161ad2a4390

Take care of rt removal from gem api Double the default count since filtering is done at gem level, not api.
author nanaya <me@myconan.net>
date Tue, 01 Dec 2015 01:34:12 +0900
parents 8f68ca606099
children 5dd24a65547b
line wrap: on
line diff
--- a/app/controllers/tweets_controller.rb	Tue Dec 01 01:27:22 2015 +0900
+++ b/app/controllers/tweets_controller.rb	Tue Dec 01 01:34:12 2015 +0900
@@ -6,7 +6,7 @@
 
   def show
     client = Tweet.new(params[:id])
-    @tweets = client.timeline
+    @tweets = client.timeline :exclude_replies => true, :count => 40
     @user = client.user
   rescue Twitter::Error::NotFound
     head :not_found