comparison app/controllers/tweets_controller.rb @ 81:fe5ea9b86091

Include replies
author nanaya <me@myconan.net>
date Sun, 26 Jun 2016 18:20:24 +0900
parents 5dd24a65547b
children 5bfc986200db
comparison
equal deleted inserted replaced
80:448a368f7344 81:fe5ea9b86091
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 :exclude_replies => true, :count => 40 9 @tweets = client.timeline :exclude_replies => false, :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