comparison 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
comparison
equal deleted inserted replaced
65:eecb35eac2f3 66:1161ad2a4390
4 def index 4 def index
5 end 5 end
6 6
7 def show 7 def show
8 client = Tweet.new(params[:id]) 8 client = Tweet.new(params[:id])
9 @tweets = client.timeline 9 @tweets = client.timeline :exclude_replies => true, :count => 40
10 @user = client.user 10 @user = client.user
11 rescue Twitter::Error::NotFound 11 rescue Twitter::Error::NotFound
12 head :not_found 12 head :not_found
13 rescue Twitter::Error::Unauthorized 13 rescue Twitter::Error::Unauthorized
14 head :forbidden 14 head :forbidden